<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:caolanm@redhat.com" title="Caolán McNamara <caolanm@redhat.com>"> <span class="fn">Caolán McNamara</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BASIC: Selecting items in a visible list box in a dialog is very slow"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129037">bug 129037</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BASIC: Selecting items in a visible list box in a dialog is very slow"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129037#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BASIC: Selecting items in a visible list box in a dialog is very slow"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=129037">bug 129037</a>
              from <span class="vcard"><a class="email" href="mailto:caolanm@redhat.com" title="Caolán McNamara <caolanm@redhat.com>"> <span class="fn">Caolán McNamara</span></a>
</span></b>
        <pre>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

<a href="https://gerrit.libreoffice.org/#/c/83771/">https://gerrit.libreoffice.org/#/c/83771/</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>