[patch] Selection stats in statusbar
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu Aug 18 15:41:42 UTC 2022
Le 18 août 2022 14:25:28 GMT+02:00, "Jürgen Spitzmüller" <jspitzm at gmail.com> a écrit :
>> My method: statistics update only when idle for a long enough time
>> and only once, hence, cannot interfere with continuous typing and are
>> very unlikely to interfere at all.
>
>And it updated after that timing whether it is needed or not. This is
>the point I want to bring across. And the delay is not needed if
>everything is done properly. It is just a result of bad design.
I only read half of this thread, but I the timer could return early if it is determined that the buffer did not change (for example that the undo group number is the same ?).
Note also that the stats code can be made much faster with a rewrite without do iterator, if I am not mistaken. But this is for later.
JMarc
More information about the lyx-devel
mailing list