GNU bug report logs - #57207
29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling)

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Sun, 14 Aug 2022 15:55:01 UTC

Severity: normal

Found in version 29.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, 57207 <at> debbugs.gnu.org, yantar92 <at> gmail.com
Subject: Re: bug#57207: 29.0.50; Fontification is slow after e7b5912b23
 (Improvements to long lines handling)
Date: Mon, 22 Aug 2022 14:00:34 +0000
>
> However, resetting the narrowing in _all_ buffers at the beginning of 
> each redisplay cycle could be quite expensive in sessions with many 
> hundreds of live buffers.
>

Actually, we only reset the locked narrowing in all buffers.  An Emacs 
session would typically only have a handful of live buffers in which such 
a narrowing is used, i.e. a small fraction of the live buffers.

>
> How much time does the loop in reset_outermost_narrowings take per live 
> buffer?
>

About 150 ns/buffer here.  I'll see whether and how it could be improved.

>
> Should we perhaps maintain a list of buffers with such narrowing?  It 
> should be a very short list.
>

That's one possibility indeed.




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

Previous Next


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