[RFC] Make scrolling-by-selection smoother

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sat Jul 20 21:28:32 UTC 2024


Le 20/07/2024 à 21:23, Richard Kimberly Heck a écrit :
> On 7/20/24 3:22 PM, Jean-Marc Lasgouttes wrote:
>> PS: the profiler tells me that more than 10% of this time is lost 
>> updating macros over and over. I'll take a look at that.
> 
> That is at the root of a lot of the performance issues we have.

This is what I had in mind. It seems to work well. Does it look good to you?

Next step would be to skip updateMacros() when there is no macro. The 
question is probably how we detect that a macro is inserted. We could 
count macros in updateBuffer() (which is quick).

What I do not understand is how updateMacros handles children and 
master. It looks like master is not taken in account, but this is really 
not clear to me.

JMarc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Do-not-run-updateMacros-if-the-buffer-has-not-change.patch
Type: text/x-patch
Size: 3019 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240720/becc53ec/attachment-0001.bin>


More information about the lyx-devel mailing list