emacs-devel
[Top][All Lists]
Advanced

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

Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%


From: Eli Zaretskii
Subject: Re: bug-reference-prog-mode slows down CC Mode's scrolling by ~7%
Date: Sat, 04 Sep 2021 09:09:10 +0300

> Date: Fri, 3 Sep 2021 20:51:22 +0000
> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> OK, I've hacked up a trial implementation, though I haven't started
> testing it yet.  The key is to extract jit-lock--fontify-now-1 from
> jit-lock-fontify-now, and have it call itself recursively to handle the
> expansion of the region caused by a jit-lock-bounds returned by the
> second or later function.
> 
> This should be easy to test and verify as correct, yet the recursion
> should be invoked rarely enough that it won't lead to inefficiencies.
> 
> This implementation should resolve Eli's concerns about handling two
> or more "first" functions in jit-lock-functions.

Thanks.



reply via email to

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