Opening Document > Settings feels a bit laggy to me
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Mar 9 18:09:01 UTC 2025
Le 09/03/2025 à 18:23, Jean-Marc Lasgouttes a écrit :
> I do not have much time right now, but hotspot thinks that the time is
> spent in BulletsModule constructor.
>
> This code uses svg images since the commit below. Would it be faster
> with one big svg for each type of bullets ?
>
> With 2.5, this is dwarfed by ColorCombo, but that is a different story.
Using pmprof on master with the attached patch, one sees indeed that
bullets and colors use 94% of GuiDocument creation time.
#pmprof# bulletsModule: 432.70 ms, count=1, total=432.70 ms
#pmprof# colorModule: 884.27 ms, count=1, total=884.27 ms
#pmprof# GuiDocument: 1.40 s, count=1, total=1.40 s
What is strange though is that the dialog seems to need more than 1.4
seconds to appear, but this is subjective.
Note that the ColorsCombo thing also costs time in other places, the
total cost of fillComboColor is 1.24 seconds in 21 calls.
JMarc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prof_document_settings.diff
Type: text/x-patch
Size: 1728 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250309/f4cafa3e/attachment.bin>
More information about the lyx-devel
mailing list