all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Why emacs rendering is slow when encountering long lines?
Date: Sun, 20 Oct 2013 18:38:29 +0300	[thread overview]
Message-ID: <83k3h8kl56.fsf@gnu.org> (raw)
In-Reply-To: <cb97ea87-a6a3-46c4-bd7d-ea9d2867ef75@googlegroups.com>

> Date: Sun, 20 Oct 2013 03:25:30 -0700 (PDT)
> From: Jiaxin Cao <jiaxin.cao@gmail.com>
> 
> On Sunday, October 20, 2013 1:00:45 PM UTC+8, Jiaxin Cao wrote:
> > When I open a file containing long lines, it is not smooth to scroll up and down, even if the file is not large. 
> > 
> > 
> > 
> > Does anyone know how to configure emacs to make it smoother?

Hard to tell without knowing what was in the file.  The performance is
somewhat sensitive to the contents of the file.

But in general, the Emacs display engine is known to have trouble with
very long lines, see bug #13675.

> Specifically, scroll-down is way worse than scroll-up. 
> 
> I did a little test for it. A single scroll up takes about 15ms to finish, while a scroll down takes about 50ms. 
> 
> So if you press down pageup to trigger consecutive scroll-downs, the screen will basically not respond to anything. 
> 
> Anyone can explain why?

The reasons for the asymmetry are complex and have to do with the
display engine internals.  But first let me ask you: when you say
scroll-up, do you mean go forward in the buffer, or do you mean going
back?

Also, what was the major mode of the buffer where you tried this?



  reply	other threads:[~2013-10-20 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20  5:00 Why emacs rendering is slow when encountering long lines? Jiaxin Cao
2013-10-20 10:25 ` Jiaxin Cao
2013-10-20 15:38   ` Eli Zaretskii [this message]
2013-10-20 15:50   ` Dan Espen
2013-10-20 16:07     ` Eli Zaretskii
2013-10-20 16:09 ` Allan Streib
     [not found] ` <mailman.4348.1382285387.10748.help-gnu-emacs@gnu.org>
2013-10-21  2:08   ` Jiaxin Cao
2013-10-21  3:00     ` Eli Zaretskii
2013-10-21 14:39       ` Jules Colding
2013-10-21 16:36         ` Eli Zaretskii
2013-10-21 16:16       ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=83k3h8kl56.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.