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


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 56682 <at> debbugs.gnu.org, gregory <at> heytings.org, monnier <at> iro.umontreal.ca
Subject: bug#56682: locked narrowing
Date: Tue, 29 Nov 2022 21:29:59 +0200
On 29/11/2022 20:19, Eli Zaretskii wrote:
>> Date: Tue, 29 Nov 2022 19:56:30 +0200
>> Cc:56682 <at> debbugs.gnu.org, Eli Zaretskii<eliz <at> gnu.org>,
>>   Stefan Monnier<monnier <at> iro.umontreal.ca>
>> From: Dmitry Gutov<dgutov <at> yandex.ru>
>>
>> Look at the timings for dictionary-pp.json. After C-s eman:
>>
>> master: ~100 ms
>> ff57f30bee, or c59b8dfefa, or Emacs 28: ~20 ms
>>
>> That's the regression.
> The faster ones use a different major-mode, btw.

The old (faster) revision uses js-mode, the new one -- the optimized 
js-json-mode. I'm sure I could have made a mistake doing that 
optimization, but the behavior doesn't indicate that: the delays are 
higher near BOB and seem absent near EOB (in master/emacs-29), and they 
don't show up in the profiler in separate leaf nodes (the previous ones 
-- which I worked on optimizing -- did).

You can also copy the definition of js-json-mode to a file and evaluate 
it in the July Emacs, and use it with that file. Or enable js-mode 
instead in the emacs-29 Emacs. The measurements do not change here.




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.