From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sun, 5 Apr 2020 10:45:32 +0200 Message-ID: References: <83k12zz6ds.fsf@gnu.org> <054393f3-3873-ab6e-b325-0eca354d8838@gmx.at> <20200403174757.GA8266@ACM> <20200404104553.GA5329@ACM> <07fe3b69-3ab2-3173-0696-cb17809e2b91@gmx.at> <20200404120120.GD5329@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="2675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, rrandresf@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 05 10:49:42 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 1jL0yM-0000am-2x for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 10:49:42 +0200 Original-Received: from localhost ([::1]:45912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL0yJ-0001Lp-VK for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Apr 2020 04:49:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59885) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL0uS-0000A5-92 for emacs-devel@gnu.org; Sun, 05 Apr 2020 04:45:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jL0uQ-00040j-6r for emacs-devel@gnu.org; Sun, 05 Apr 2020 04:45:40 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:41923) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jL0uO-0003vp-FU; Sun, 05 Apr 2020 04:45:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586076333; bh=R8/UO05ThRwn9gqauztN1Tp0V3hOBMNMaWeQDC8DSro=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=R/NHAJL41QItG2eLZJoXqWiK0zqADmZS+2EeN/1vMbVbbGRF/lkHuCAn9JeFwL1SU mCaLGvDvZeJ3tJP9yU4QTE2obqzsuvseiXRQKT46cF2CoACjpy3os6kCfZBpJmHCl2 vaglyOgSCSYnxGNOKQ2bKsQul0rxnRvsXrji105k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.40]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRCK6-1jiAUz0Ebc-00NBfu; Sun, 05 Apr 2020 10:45:33 +0200 In-Reply-To: <20200404120120.GD5329@ACM> Content-Language: en-US X-Provags-ID: V03:K1:OjCv4x2by564+yC2yHS1tbTiULEqk4N3EH1DrU636Doy4rfqGJU 92YaJOK6SSOfC7+DlQzga5179fB9UU+7s1ZonhZyRuT7VwlRUBqpyVk0FGGKgK7xUphdtTH JhF73I+/oYhb2KFRYdFFyAw6Wu7w1Vr+ViFBw1cXBXv5HXyTjMXeeQElKQWm1ksHUnW5snZ EL8Lqp3Hp14Itd6lpZaBw== X-UI-Out-Filterresults: notjunk:1;V03:K0:4noyho6f9DU=:y5MC4LxT3FpvLFpnuT+dq1 R9s+HbJrXtKL4TIfK119/sjjT8k5Cyip+vcTaC8VuevedfGU1FoVNGcIk4AE5IlqynkkHIIai rGOyP4hb7X7UM0ArS6xpL5ucyqKDC3XL59wI6M1KNBSICuAMbWHhP7UHzLDDBwhkDnOAONZ2o kJ1Q7tV+0d+ksoE6T38IPr1eS4jx/35lhRexDuIJRNwi+2rz4mVfsb76p5NSlhKJ3v8k/vlYZ Z7ntO9fpjxIHfcdF1ywz4VSG/rM5Ku8i8XGHLPdWAyaouL68NR/BQ+IM4dTliPn5dSm9ljUa0 PCtuJGhdAc3fsc2Jqnwvq4FsXb5bQUGOkT3GL4ZENns8h5gDjK8LiQVkaUAVm4yCBlnzejYHJ vsAb47g95ObI0LWLwV1sYLZXqT4H15dO+H/2UEhPHuZjeJsHv50sRdAemzm8KMVFgzt8aUf2P LLok0ZOQ6sXcHI7mroBAKBNyBf+gvp7quCcAIWI3laFG+4pVK7qCYgKig930RvJKgdPth6KS6 JvrI2PGWywoGSA3hKK2NsaiPw4InW1IGhZ+hokpa7Ctnymq8VRo5tJfSa5xs5GLxQ6rJ/NKw/ r4yLcR8fBWLi8wfUnXhT33sJFGNAOuApZ65zunmJib5QHX07Zl8KYDt87/hky/Q6qlFH7d4sE CNvp0UFipgFHkw9FFCRzuh57Uqf2DTuSwo+Wey+ZtTC50+yMFztYNAux6yWceEdpo2tZRRG/1 cai9nODKyQLeRJ7Zyetu+KQnYWVBes3yeNfiziaPMwLSdnLDMbgYWHpj1Zx+EFEQChJgUgyb X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:246440 Archived-At: >> To avoid confusion - what is 'time-it'? > > (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))) Thanks. But for 'mwheel-scroll' I would have to construct an EVENT first. I'm not yet sure how to that. >> And please note that I did not say that I ran 'scroll-up'. I did a >> mouse wheel scroll as the OP of that bug requested .... > > Sorry. I thought you were using poetic language when you wrote "one turn > of the wheel". I didn't have the context of the bug in my head. Please have a look at Bug#40278 which is about mouse wheel scrolling, a child frame, Windows 10 and dispextern.h. People in that thread mainly concentrated on the child frame but here on Debian all I needed to clog my machine was to display dispextern.h and spin the mouse wheel. > Just for comparison, would you please time (scroll-up) (sit-for 0) in > xdisp.c on your machine, to give us a better sense of the relative > speeds. With your 'time-it' it gives me 0.32201647758483887 here (seconds?). I have not managed yet to put scroll-up's into a loop and redisplay after each call so I could simulate/time the effect of mouse wheel rolling. > For what it's worth, I've just tried a fast mouse-wheel scroll in xdisp.c > in X Windows on my machine. There was no noticeable lag. "fast" is probably not sufficient. Here a few rolls suffice to freeze the Emacs frame for about 10 secs. Maybe on your machine you need more rolls. Try to roll fast until you reach the end of the buffer. I meanwhile suspect that one culprit might be the progressive squaring in 'mwheel-scroll'. But I don't understand that yet and do not see it documented well. Also, setting 'mouse-wheel-scroll-amount' to '(1) does not seem to make any difference either. martin