[LyX/master] Do not run updateMacros if the buffer has not changed

Richard Kimberly Heck rikiheck at gmail.com
Wed Jul 24 22:43:48 UTC 2024


On 7/24/24 12:36 PM, Jean-Marc Lasgouttes wrote:
> Le 24/07/2024 à 18:31, Jean-Marc Lasgouttes a écrit :
>> commit 999fb37ebb1aecfda9889fa6a2b2fbb15133f2aa
>> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
>> Date:   Sat Jul 20 22:31:34 2024 +0200
>>
>>      Do not run updateMacros if the buffer has not changed
>>           Each buffer now has an id which is increased when it is 
>> marked dirty
>>      (or when one of its relatives is marked dirty).
>>           This can be a big win since updateMacros is very expensive.
>
> Riki, I propose to consider this for 2.4.X. 

This looks pretty safe to me.

> There is no hurry, it can be 2.4.3. We could also add the "smoother 
> scroll" patch although we would have to test it to see if the 
> performance is still good. It should be, I did not add that many 
> things in master that make a difference.

That's fine, too. I'll be actively using stable for writing in a few days.

Riki




More information about the lyx-devel mailing list