Opening Document > Settings feels a bit laggy to me
Scott Kostyshak
skostysh at lyx.org
Wed Mar 12 11:42:00 UTC 2025
On Wed, Mar 12, 2025 at 11:49:30AM +0100, Jean-Marc Lasgouttes wrote:
> Le 12/03/2025 à 11:47, 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.
> >
> > Probably. But as I said, this has to wait.
>
> Fine with me.
Sounds good. One more attempt at a quick-fix-in-the-meantime solution
(tell me if you wish not even to discuss and I will stop). It seems that
addItemSort() is taking up the cycles. We call that inside two loops
inside ColorsCombo::fillComboColor(). Could it potentially make a big
difference to not sort each time in the loop and just sort all after the
loop?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250312/4ab12eac/attachment.sig>
More information about the lyx-devel
mailing list