Opening Document > Settings feels a bit laggy to me
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Mon Mar 17 17:26:58 UTC 2025
Le 17/03/2025 à 16:50, Jürgen Spitzmüller a écrit :
> Am Mittwoch, dem 12.03.2025 um 11:38 +0100 schrieb Jean-Marc
> Lasgouttes:
>> Isn't it possible to have a single model for these colors and use it
>> in several combo boxes? I see 21 calls to updateCustomColors just to
>> open the document settings on an empty document.
>
> I've done this now. The only thing I didn't manage to implement is the
> " (Default)" flag for the default color in a combo when the combo is
> collapsed (it is shown when expanded).
>
> Otherwise it seems to work as expected.
>
> I haven't done any speed improvement measurements, though.
The speed is fine now, thanks! I see a 17-fold improvement for the color
module of document settings. Only the bullets panel stands out.
#pmprof# bulletsModule: 259.70 ms, count=1, total=259.70 ms
#pmprof# colorModule: 52.83 ms, count=1, total=52.83 ms
#pmprof# GuiDocument: 386.13 ms, count=1, total=386.13 ms
JMarc
More information about the lyx-devel
mailing list