Opening Document > Settings feels a bit laggy to me

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sun Mar 9 17:23:57 UTC 2025


Le 09/03/2025 à 17:09, Richard Kimberly Heck a écrit :
>> Sorry, meant to include that and forgot. It was 2.4.3.
>
> I think this is simply because there is a whole lot of stuff that 
> happens the first time the dialog is opened, and there is a fair bit 
> more now than in 2.3.x. The GuiDocument constructor is nearly 1000 
> lines of code. That only runs the first time. After that, the dialog 
> is only 'hidden', not destroyed. Parameter initialization is done 
> every time, but is comparatively fast. 

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.

JMarc


commit 11b7714fc15475a2bb385943ece7b98273283114
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Feb 9 10:32:16 2021 +0100

     Use SVG icons in itemize bullet selector

     This scales much better than the current png solution, is HiDPI- and
     darkmode-ready
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250309/365e447d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran du 2025-03-09 18-16-32.png
Type: image/png
Size: 166373 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250309/365e447d/attachment-0001.png>


More information about the lyx-devel mailing list