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.
JMarc