From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: rrandresf@gmail.com Newsgroups: gmane.emacs.devel Subject: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sat, 21 Mar 2020 22:19:27 +0000 Message-ID: <86tv2h2vww.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="58196"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 21 23:20:04 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFmTM-000F2Z-DQ for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Mar 2020 23:20:04 +0100 Original-Received: from localhost ([::1]:41292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFmTL-0003yg-Fz for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Mar 2020 18:20:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59039) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFmSs-0003YT-G5 for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:19:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFmSr-00048Y-D7 for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:19:34 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:39857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFmSr-000489-6g for emacs-devel@gnu.org; Sat, 21 Mar 2020 18:19:33 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id f20so8450194qtq.6 for ; Sat, 21 Mar 2020 15:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=eQIYX9SbYDSJ7sfrc1wxr2uFBPPlC/150nnjliP+/Y8=; b=n4ksDbOnEGwDmkNvZmZu1sZ6tnPP8blbHX5CKSq7luTC8vTpB/gK0tjs0KscfnDcyj s79D2Qf0URre/LV5rsOAuAgBYkuHYufYLUlZ0I8uahfRfu5QvcPgKAVf4hNn/yCdX93v F3V8QZ7GXDPh3X8qgGJI0a2eFGTTWIMh7flcC1KHfQaMre93Rw8C9p1bQZOPn9xX8n3T 3/Ku8qGbD9n5RWLLMhhOApR3KrSJhn+aeJMffMRW8FM6DnU2zCh9JnLygZTmPKEv7hdp jQRsNeDekVLiyb0tIfLSGXl2YY2xk1OOMUiTIIDc7qQl6njoon5G2fBgaGMP3nDMd2WJ SXPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=eQIYX9SbYDSJ7sfrc1wxr2uFBPPlC/150nnjliP+/Y8=; b=sHk3copqpVF1FIP3fnwsOdpf2uYSdGISZ71gxgVGazo5J/OmPfK0xYSdtmX7iAp3WC Uho0NsqAUDmSvqDclnz0A5WKX7EFOuLJEmXq6i6Oo9AjNHtKiDIPwhM1cFTfoXlaeg8E KFWUF5yrUZsoxnRxeNlYop53kbg48NCu3FyHX/6T+pLiNMh2u8/wW4QdBY0pkX4xAbFP uB1dwdJq8uiMTjEirpJN+5sbyodoLKvHt37XkN5/rldB0B4DqPJpmS6WSR06agUZ4Awk zFDT3Lsl2kfQffac/Pt2+V0wsCSo420ufWgFCMagDvpRHohKH2wERgZLASR6yEUTu4t0 HtPQ== X-Gm-Message-State: ANhLgQ3/geB/MgYp24SUQqYjWdCzuYc66V/7oD951PuO/L5PSE4YbX2r rlqAsQetHHOZMN/dxKuYQTcO3DE7 X-Google-Smtp-Source: ADFU+vukPyHY4eIPeEWzJ8fYmjE6PrCjRePboM3y+klVIET4Odw0U1mKL7dhER+SKHAw0yZwDPWnbQ== X-Received: by 2002:ac8:748e:: with SMTP id v14mr3077615qtq.355.1584829171987; Sat, 21 Mar 2020 15:19:31 -0700 (PDT) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.236.255.22]) by smtp.gmail.com with ESMTPSA id w132sm7727879qkb.96.2020.03.21.15.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2020 15:19:31 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::836 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245650 Archived-At: Hi. On my TODO list (kind of worn hole). I have several notes. One of them is comparing the rendering on emacs23 and emacs26.3. Today Alan Mackenzie share an elisp Snippet: --8<---------------cut here---------------start------------->8--- (defmacro time-it (&rest forms) "Time the running of a sequence of forms using `float-time'. Call like this: \"M-: (time-it (foo ...) (bar ...) ...)\"." `(let ((start (float-time))) ,@forms (- (float-time) start))) (defun time-scroll (&optional arg) (interactive "P") (message "%s" (time-it (condition-case nil (while t (if arg (scroll-down) (scroll-up)) (sit-for 0)) (error nil))))) --8<---------------cut here---------------end--------------->8--- Alan suggested this to Andrea Corallo (BTW nice work with your branch Andrea. and I still remember the discussion about numbering and source code Alan) --8<---------------cut here---------------start------------->8--- , visit .../emacs/src/xdisp.c, and do M-: (time-scroll) --8<---------------cut here---------------end--------------->8--- When I saw this. The first thing that come to my mind was (it is useful on one of the items of my TODO'S). So I did It on xdisp.c from emacs26-3 source code. Applying it on emacs23 and on emacs26 (on an opi+2e machine with 1 Ghz processor) This is the result: --8<---------------cut here---------------start------------->8--- emacs-23 162.7052059173584 emacs-26.3 281.4721345901489 --8<---------------cut here---------------end--------------->8--- The difference is very notorious. I realized it from a long time on another ARM machine with 480 Mhz (which i still use aka my phone). But I have not got the time and tools for letting you guys know about it. So thanks Alan for sharing it. Teoretically. What would be the cause of this difference on rendering between versions? Best Regards