bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23278: 25.0.92; font-lock-ensure is too slow


From: Eli Zaretskii
Subject: bug#23278: 25.0.92; font-lock-ensure is too slow
Date: Sat, 07 May 2016 11:27:09 +0300

> From: Dmitry Gutov <address@hidden>
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]