unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Making font-lock handle long lines better
@ 2017-02-10 15:44 Ryan B
  2017-02-10 15:57 ` joakim
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ryan B @ 2017-02-10 15:44 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

hi all! it seems like it's been a known issue for a while that font-lock is
slow on very long lines. i've tried lots of optimizations -
jit-lock/lazy-lock, font-lock-maximum-decoration, etc. - but even on modern
hardware, fontifying still hangs my emacs for 5-10s on long lines, e.g.
10k-20k characters, whenever they appear.

i'm thinking of adding an opt-in line length limit to font-lock-mode, after
which it would stop fontifying, evaluating regexps, etc. within each line.
i'd love to hear opinions on whether that makes sense, and whether you
might consider accepting it into trunk.

thanks in advance!


-- 
https://snarfed.org/

[-- Attachment #2: Type: text/html, Size: 901 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-15 18:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-10 15:44 Making font-lock handle long lines better Ryan B
2017-02-10 15:57 ` joakim
2017-02-10 16:24 ` Eli Zaretskii
2017-02-11 20:10   ` Wilfred Hughes
2017-02-11 20:28     ` Eli Zaretskii
2017-02-11 23:06       ` Anders Lindgren
2018-05-13 19:44         ` Ryan B
2018-05-15  0:05           ` Noam Postavsky
2018-05-15  8:08             ` Jostein Kjønigsen
2018-05-15 16:50               ` Eli Zaretskii
2018-05-15 18:32                 ` Stefan Monnier
2017-02-11 22:06 ` Ryan B

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).