[patch] Selection stats in statusbar
Jean-Marc Lasgouttes
lasgouttes.lyx.org at free.fr
Tue Jul 12 20:46:45 UTC 2022
Le 12/07/2022 à 22:31, Scott Kostyshak a écrit :
> Part of it is that I just like to bother JMarc,
I am glad to humor you.
> As for how to solve the performance issue, is there any smart caching
> that can be done?
The first thing to do would be to scrap the current method and create a
new version from scratch. Going though a document with an iterator
character by character is a horribly slow by design. The code goes
though each and every math formula without any hope of finding something.
updateBuffer is a good example of how to do this right.
JMarc
More information about the lyx-devel
mailing list