GNU bug report logs - #56682
Fix the long lines font locking related slowdowns

Previous Next

Package: emacs;

Reported by: Gregory Heytings <gregory <at> heytings.org>

Date: Thu, 21 Jul 2022 18:01:01 UTC

Severity: normal

Done: Gregory Heytings <gregory <at> heytings.org>

Bug is archived. No further changes may be made.

Full log


Message #1303 received at 56682 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 56682 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#56682: Fix the long lines font locking related slowdowns
Date: Sat, 13 Aug 2022 13:42:25 +0000
>
> I think we'll want to decouple the two because they aren't quite the 
> same (e.g. in many cases the time taken by `syntax-ppss` doesn't depend 
> on the length of lines, whereas the time taken by `font-lock-keywords` 
> rues does not depend on the total buffer size).
>

That's what I initially thought, too.  Now I tend to think that it would 
be better to not decouple these two cases, because it would be too 
expensive to distinguish the four possible cases, namely:

1. "normal buffers"

2. non-large buffers with long lines

3. large buffers without long lines

4. large buffers with long lines

It is probably better to group the three last cases in a single group, and 
to use the same optimization techniques for these three cases.




This bug report was last modified 2 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.