[Libreoffice-bugs] [Bug 109158] slower loading of a huge AutoCorrect replacement table
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 1 13:55:56 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=109158
V Stuart Foote <vstuart.foote at utsa.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |michael.meeks at collabora.com
--- Comment #33 from V Stuart Foote <vstuart.foote at utsa.edu> ---
(In reply to Xisco FaulĂ from comment #31)
> Created attachment 143558 [details]
> Callgrind trace from bug 118761. Thanks to Buovjaga
In this callgrind -- see line# 47060
Each of the 2642 items loaded in the Autocorrect listbox's GUI with
SvLBoxString::InitViewData() cost both a GetTextHeight() and more expensive
GetTextWidth() call.
As suggested comment 23 the GetTextWidth() could again be controlled by testing
size of the list, assigning a fixed width when list is > some number maybe
~300.
Also, since this controls all GUI listboxes, we can't just make the text height
fixed, but guess we could include within the same list size testing and save
that cost as well?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180901/84f330d9/attachment.html>
More information about the Libreoffice-bugs
mailing list