From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Is Emacs buffer scroll/redisplay slow? Date: Mon, 20 Jan 2020 01:23:22 +0100 Message-ID: References: <20200119115146.GA9172@ACM> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008dea9f059c874d91" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="113124"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 20 01:24:14 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 1itKrV-000TNc-Qj for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Jan 2020 01:24:13 +0100 Original-Received: from localhost ([::1]:55642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itKrU-0006yL-S8 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 19:24:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itKqz-0006XN-AO for emacs-devel@gnu.org; Sun, 19 Jan 2020 19:23:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itKqy-0005sc-2g for emacs-devel@gnu.org; Sun, 19 Jan 2020 19:23:41 -0500 Original-Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:37169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itKqx-0005rx-T1 for emacs-devel@gnu.org; Sun, 19 Jan 2020 19:23:40 -0500 Original-Received: by mail-qt1-x82b.google.com with SMTP id w47so26413603qtk.4 for ; Sun, 19 Jan 2020 16:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/CQNrOiGPNHuuTbCy11iYLa6ufccnExnAADfzS3L6e4=; b=EkGpyrItfPJ9XylA5eK7HaV0tTHM1m8rEK+ys61bebUa0tEhFOAE2112sofEtkwkry K2kUJWt77nQtYTrI0wgEK5Wz6n1EipTPTsKNOlbjDA7AskJ6hX9doZkibEnTmxAiMiwZ 7kUxia6fqlKoM47cE3oC1NHrsFbzMx0q0bUFHDqE5DXwugyTEghw9xF8dMGq8CgiQjTe 7FGpYIAAUK76vzUxzM0VfatPNHsw3Kko55OV8wZPsFro/OMep9nESPowqFa7x70PwvqF vuHHzLxLNglXaefWOKoIKDfjGQykb5V4kpRKF/zFOJ6On48fqNDl/8t70xAfp5oUZb1Q jXPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/CQNrOiGPNHuuTbCy11iYLa6ufccnExnAADfzS3L6e4=; b=rKWdV6EmQIv+mXghNQue+BkjYj8NVRxPMc/2orhHqpMHez5+BogNDEG90DPdKyZ31V e7+n1mN+yCha3qgrjAaoZCrmhcrt/KBQnSjfRkKgykoXNLuil2nSS9eat5w8G21nfB3w 1GiXKDcDpu2iNuaQEuHnfSJYXuA0pJKeMc7i6qMbtmDWUS2hdQhOMk9M9vJjfg11bCK8 Ac9HUn+c8PhkBfbHnLghWj1Mj026NX4aDss33QTq90dcNGw6yrcoF72CTp3AywL7MCKh bkOFw9k/3hPjoo2Z0OgdSygoXZFtQLyzaabrQpJ2IHmNrEp+aI0nxyxBro4mB5cyF8Oy Aosw== X-Gm-Message-State: APjAAAXXhDDOMAXui3zrIpjl/cpQkAmXblDIrxdmo6Mx9BWfSjEkHO96 6cIETPuo8PAeFBiD3tsfWmuWkPsJJ43fx7mY+7OTq56+ X-Google-Smtp-Source: APXvYqz+52nypyHCj0nn44gJgo0AE0jHPYMhEapByAIBIKsvx/zCS5B17PyNbNIUdR0vlRqXNszl9mekWZBVg6H5/KA= X-Received: by 2002:ac8:258f:: with SMTP id e15mr18569261qte.241.1579479819216; Sun, 19 Jan 2020 16:23:39 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82b 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:244400 Archived-At: --0000000000008dea9f059c874d91 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le dim. 19 janv. 2020 =C3=A0 23:20, Stefan Monnier a =C3=A9crit : > >> > .... scrolling through an elisp buffer: I started the timer by hand > and > >> > scrolled down for 1000 lines .... > [...] > >> .... and it took 45s on Windows/WSL and 35s on Windows/native. > > 1000 lines divided by 45s is about 22 lines per second. > If you did that with `C-n` it suggests you're simply using a keyboard > repeat rate of about 20 repetitions-per-second and Emacs is just neither > fast nor slow. 35s on native suggests the keyboard repeat rate is > (surprisingly) different, more like 30 repetitions-per-second. > > If Emacs is slow in such a test, you'll notice because it will stop > refreshing the display at times (hoping that skipping the redisplay time > will help it keep up with the repeat rate). > If I posted this, it is because looking at it, the cursor was like jumping from line to line, but it doesn't seem steady. Actually, I changed some setting to get a faster autorepeat and emacs keeps up when the time is down to 16s for 1000 lines, more than twice as fast. Best regards, Fabrice --0000000000008dea9f059c874d91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Le=C2=A0dim. 19 janv. 2020 =C3=A0=C2= =A023:20, Stefan Monnier <mo= nnier@iro.umontreal.ca> a =C3=A9crit=C2=A0:
>> > .... scrolling through an = elisp buffer: I started the timer by hand and
>> > scrolled down for 1000 lines ....
[...]
>> .... and it took 45s on Windows/WSL and 35s on Windows/native.

1000 lines divided by 45s is about 22 lines per second.
If you did that with `C-n` it suggests you're simply using a keyboard repeat rate of about 20 repetitions-per-second and Emacs is just neither fast nor slow.=C2=A0 35s on native suggests the keyboard repeat rate is
(surprisingly) different, more like 30 repetitions-per-second.

If Emacs is slow in such a test, you'll notice because it will stop
refreshing the display at times (hoping that skipping the redisplay time will help it keep up with the repeat rate).

=
If I posted this, it is because looking at it, the cursor was like jum= ping from line to line,
but it doesn't seem steady. Actually,= I changed some setting to get a faster autorepeat
and emacs keep= s up when the time is down to 16s for 1000 lines, more than twice as=C2=A0= =C2=A0
fast.=C2=A0

Best regards,

Fabrice
--0000000000008dea9f059c874d91--