[Libreoffice-bugs] [Bug 129037] BASIC: Selecting items in a visible list box in a dialog is very slow

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Nov 26 14:06:48 UTC 2019


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

Caolán McNamara <caolanm at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Caolán McNamara <caolanm at redhat.com> ---
selectItemsPos is implemented by VCLXListBox::selectItemsPos in
toolkit/source/awt/vclxwindows.cxx and that loops over each index and calls
ListBox::SelectEntryPos in a loop where SelectEntryPos is in
vcl/source/control/listbox.cxx where the slow bits seems to be the very
expensive CallEventListeners calls

checking VclEventId::ListboxSelect uses I don't think there is any use of the
position argument passed in so I don't think that matters too much, consumers
seem to just look up what is selected themselves, so its plausible that we
could get away with a single CallEventListener in this scenario

https://gerrit.libreoffice.org/#/c/83771/

-- 
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/20191126/c0354d6a/attachment.html>


More information about the Libreoffice-bugs mailing list