|Subject:||Re: line buffer as Red Black Trees instead of linear|
|Date:||Fri, 16 May 2014 02:40:00 +0300|
You cannot help redisplay with long lines by giving it random access
> Emacs works bad with buffers with long lines. This would work well, and all
> the others atomic operations, like random access, search, will preserve the
> current speed.
to buffer text.
Long lines slow down redisplay because it needs to scan the entire
line to see how tall it will be on display. For that, you must scan
the line in its entirety, since Emacs supports variable-size fonts and
images on the same line, so determining the height of a line requires
to find the largest display element (character glyph or image)
displayed on that line.
How can random access to buffer text help here?
|[Prev in Thread]||Current Thread||[Next in Thread]|