<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - slower loading of a huge AutoCorrect replacement table"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=109158">bug 109158</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;">CC</td>
           <td>
                
           </td>
           <td>michael.meeks@collabora.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - slower loading of a huge AutoCorrect replacement table"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=109158#c33">Comment # 33</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - slower loading of a huge AutoCorrect replacement table"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=109158">bug 109158</a>
              from <span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span></b>
        <pre>(In reply to Xisco FaulĂ­ from <a href="show_bug.cgi?id=109158#c31">comment #31</a>)
<span class="quote">> Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=143558" name="attach_143558" title="Callgrind trace from bug 118761. Thanks to Buovjaga">attachment 143558</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=143558&action=edit" title="Callgrind trace from bug 118761. Thanks to Buovjaga">[details]</a></span>
> Callgrind trace from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Opening Autocorrect options the first time takes 10 seconds (Linux-only)"
   href="show_bug.cgi?id=118761">bug 118761</a>. Thanks to Buovjaga</span >

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 <a href="show_bug.cgi?id=109158#c23">comment 23</a> 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?</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>