GNU bug report logs - #23278
25.0.92; font-lock-ensure is too slow

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Tue, 12 Apr 2016 19:50:01 UTC

Severity: normal

Tags: patch

Found in version 25.0.92

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 23278 <at> debbugs.gnu.org
Subject: bug#23278: 25.0.92; font-lock-ensure is too slow
Date: Sat, 07 May 2016 11:27:09 +0300
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Tue, 12 Apr 2016 22:49:09 +0300
> 
> Example:
> 
> Open xdisp.c, navigate to the first line. Evaluate:
> 
> (load "jit-lock")
> (benchmark 1000 '(font-lock-ensure (line-beginning-position)
>                                    (line-end-position)))
> 
> => 0.66s
> 
> Which puts a dampener on the idea of syntax highlighting xref results in
> the open files.
> 
> With the patch below, the benchmark executes 100 times faster.
> OK to apply?

If you run with this since the time of your message and saw no
problems, please push to emacs-25.  Otherwise, to master.

Thanks.




This bug report was last modified 9 years and 18 days ago.

Previous Next


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