MacOS: 15 sec maximum CPU utilization for a search in expert configuration menu with a limited input. It's similar to bug 114462, but takes way longer on MacOS
Steps to Reproduce:
1. Launch LibreOffice 6.1 alpha with Instrument using the time profile
2. Open LibreOffice
3. Tools -> Options -> Advanced
4. Click Open Export Configuration
5. A small search term: 'A' -> Enter
Slow search, high CPU utilization
Fast search, low CPU utilization
User Profile Reset: No
Build ID: d46dc8e547810208287aab77f0313f1971901464
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default;
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2017-12-08_10:35:46
Locale: nl-NL (nl_NL.UTF-8); Calc: group threaded
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
It certainly occupies one processor at 100% for a while.
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
Threads CPU : 8; OS : Mac OS X 10.13.1; UI Render : par défaut;
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Searching for a single character :
'E' : 12 seconds
'F' : 11 seconds
This is surely not Mac-specific? I see similar slowness on Linux, too, in master.
On the other hand, why would a user search for all entries matching a single character? That is a very unlikely thing to do. If you instead search for something meaningful (with less matches), it will take much less time. What is the actual plausible end-user scenario here?
(In reply to Tor Lillqvist from comment #3)
> On the other hand, why would a user search for all entries matching a single
> character? That is a very unlikely thing to do. If you instead search for
> something meaningful (with less matches), it will take much less time. What
> is the actual plausible end-user scenario here?
I mostly go for an easy extreme illustration (which makes the point clear) and expect it to be in a real life user case to.. Anyway: a few more realistic search terms: "Office", "OpenOffice" "Text" "Windowstate", or "Font".
Btw, the problem is isn't mac only
Most end-user don't use the expert configuration.. so the importance is probably low.. Especially when the code isn't reused somewhere
*** Bug 114462 has been marked as a duplicate of this bug. ***
Probably the root cause is the same as in bug 114462
*** This bug has been marked as a duplicate of bug 114462 ***