[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow redisplay with long lines

From: Eli Zaretskii
Subject: Re: Slow redisplay with long lines
Date: Fri, 16 May 2014 08:39:52 +0300

> From: Stefan Monnier <address@hidden>
> Date: Thu, 15 May 2014 16:38:52 -0400
> > Long lines slow down redisplay because it needs to scan the entire
> > line to see how tall it will be on display.
> Why should it care about the whole line rather than only the part
> of it that's displayed?

It does indeed care only about the displayed part of the line.  At
least it tries to, although sometimes it is hard.  E.g., when you need
to go back, you need to start from the beginning of the previous line,
because only there you know you are at column zero.

>         Stefan "who presumes there are several other reasons why long
>                 lines cause severe performance issues"

The need to traverse the long lines is the single most import one,
because it comes into play at the lowest level of display iteration,
and so pops up in many higher-level operations.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]