GNU bug report logs -
#56682
Fix the long lines font locking related slowdowns
Previous Next
Full log
View this message in rfc822 format
> From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
> Cc: Gregory Heytings <gregory <at> heytings.org>, 56682 <at> debbugs.gnu.org, Stefan
> Monnier <monnier <at> iro.umontreal.ca>
> Date: Sat, 23 Jul 2022 09:07:53 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > on long-line.xml produces a 15-fold slowdown with font-lock turned on
> > as compared to its being turned off (203 sec vs 13 sec).
> >
> > This is an unoptimized build, so you will probably see times that are
> > 4 times faster, but I'd be interested in the relative times on your
> > system. Any explanations of the slowdown are also welcome.
>
> MacOS 12.5, M1 chip
> Head: 792734a6e2cd5558debc8d9fe95d34cb3e809fa4 Improve efficiency of DND
> tooltip movement
> ./configure --with-native-compilation
>
> The long-lines.xml is 313295 bytes. Hope that's the right one.
>
> Font-lock Output
> ------------------------------------------------------------
> on GCs: 14 Elapsed time: 7.880788 seconds
> off GCs: 2 Elapsed time: 0.885791 seconds
Thanks. This is still an order-of-magnitude slowdown, so the question
about the reasons is still relevant.
One thing we do under font-lock is merging faces, but that's supposed
to be very fast nowadays, given that faces are kept in a hash-table.
And what jit-lock does when the text is already fontified should be
negligible, right?
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.