Minor performance issue on shift + down, shift + up on includes

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri May 3 09:56:55 UTC 2024


Le 22/04/2024 à 20:47, Scott Kostyshak a écrit :
> To reproduce:
> 
> 1. Move the attached file in the lib/docs directory.
> 2. Open the file.
> 3. Put the cursor before, e.g., the Additional.lyx include.
> 4. Press Shift + Down (or Shift + Up).
> 
> Result is that there is a small pause before the selection is finished.
> Subsequent presses extending the selection in the same direction are
> almost instantaneous, so it's just the first one.

I have part of the answer: the slight delay comes from the fact that 
updateBuffer() is invoked when the selection becomes empty, and since it 
goes through all documents, this takes some time.

Now I have to find out why.

JMarc



More information about the lyx-devel mailing list