On Mon, Oct 16, 2017 at 03:07:28PM +0000, Jean-Marc Lasgouttes wrote: > Le 16/10/2017 à 16:08, Pavel Sanda a écrit : > > Just trying dirty patch for caching settings inside GuiToolbar::saveSession > > instead of creating new local var for each fun entry shows that I get quit > > time around 1s. > > Quick check shows that most of remaining time is spent in DialogPtr > > saveSession > > loop again in saveUISettings; likely the same issue. > > > > The cache idea might need some refinement because I do not know what all > > entry points to saveSession() are and if having single instance throughout > > the whole session is correct or needs refresh. I won't have time to > > investigate > > more ATM. > > Good catch. A solution is porbably to instantiate a QSettings in > saveUISettings and pass it as parameter of the various saveSession() > methods.
I wonoder if this is related to #9734. Enrico noted there [1] that with Qt 5.5.0, LyX is slower to quit. Scott [1] http://www.lyx.org/trac/ticket/9734#comment:5
signature.asc
Description: PGP signature