unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Fabrice Popineau <fabrice.popineau@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Is Emacs buffer scroll/redisplay slow?
Date: Sun, 19 Jan 2020 11:51:46 +0000	[thread overview]
Message-ID: <20200119115146.GA9172@ACM> (raw)
In-Reply-To: <CAFgFV9P+_moxam-hwz_tZFz0pPNMzS1DzvGJs+C+bFqzMubCHQ@mail.gmail.com>

Hello, Fabrice.

On Sun, Jan 19, 2020 at 10:34:07 +0100, Fabrice Popineau wrote:
> Hi,

> Out of curiosity, I timed 'emacs -Q' ....

Which version of Emacs?

> .... scrolling through an elisp buffer: I started the timer by hand and
> scrolled down for 1000 lines ....

How, exactly, did you do the scrolling?  How did you stop the scrolling
at 1000 lines?  Do you get this slowness on any elisp buffer, or is it a
particular one?

> .... and it took 45s on Windows/WSL and 35s on Windows/native.

That is slow indeed.

> This is on a pretty decent laptop (core i7, 32Gb ram, 4k display) I
> don't care about the difference here, but overall, I find it pretty
> slow. Is there something that could be done to enhance it?  What is the
> main bottleneck here?

Have you tried profiling this scrolling, yet?  If not, I suggest you do,
with M-x profiler-start <CR> <CR>, running the scrolling, then M-x
profiler-report.  In the report buffer, hit <CR> to get successively
deeper results.

This may well give you an idea where the slowness is happening.

> Best regards,

> Fabrice

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2020-01-19 11:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19  9:34 Is Emacs buffer scroll/redisplay slow? Fabrice Popineau
2020-01-19 11:51 ` Alan Mackenzie [this message]
2020-01-19 14:24   ` Fabrice Popineau
2020-01-19 15:28     ` Eli Zaretskii
2020-01-19 15:34       ` Fabrice Popineau
2020-01-19 16:02         ` Eli Zaretskii
2020-01-19 17:15           ` Fabrice Popineau
2020-01-19 22:20     ` Stefan Monnier
2020-01-20  0:23       ` Fabrice Popineau
2020-01-20 13:20         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200119115146.GA9172@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).