https://bugs.documentfoundation.org/show_bug.cgi?id=159375

--- Comment #3 from Bayram Çiçek <[email protected]> ---
The reason why opening "Tools > Options" takes a bit more time than expected is
that; in order to make searching ready, we need to get all strings from the UI
and this requires instantiating all dialogs (which takes a lot time) under the
"Tools > Options".

Here we initialize first 25 dialogs while opening Options dialog:
https://gerrit.libreoffice.org/c/core/+/152519/36/cui/source/options/treeopt.cxx#1202
.Then, other uninitialized dialogs are initialized at the time of search.

The idea was that initialize half of the dialogs at startup of "Options
dialog", then initialize other half at the time of searching; so that searching
can be fast. The more dialog initialized before searching the more searching be
fast.

Anyway, my suggestion is that: don't initialize the dialogs at the opening of
"Options" but initialize all dialogs at the time of searching. In that way,
there will be no latency of opening "Tools > Options" but disadvantage will be
that searching will take a bit more time.

What do you think? I am open to any suggestions on this. 

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to