<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Automatic spell check in calc with many misspelled words causes high CPU load scrolling and text movement"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133849">133849</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Automatic spell check in calc with many misspelled words causes high CPU load scrolling and text movement
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.3.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>telesto@surfxs.nl
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
The spell checker in Calc only checks the on screen part of wrong spelled
words. In principle no issue with that. However if you start scrolling, the
spell checker 'restarts' checking everything on screen. So also the already
checked part. Nothing is cached..

So spell checker is doing same stuff multiple times.. At the same time causes
the restart the spell checker repaints of the red underlining.. which means
shaping text over and over. And shaping text isn't cheap anymore (since
Harfbuzz). 

Which - both together - creates an massive CPU load while scrolling moving text 

Steps to Reproduce:
1. Open the attached file
2. Automatic spell check enabled. Scroll up down & monitor CPU usage

Actual Results:
15-25% depending on scroll speed etc

Expected Results:
Can be improved


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 59939d2490726336546c7ad05082d23031074e12
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL</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>