<table><tr><td style="">jtamate created this revision.<br />jtamate added a reviewer: Kate.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />jtamate requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12016">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Use static variables to store information about last call.<br />
As most of the time the cursor is close to the previous position, avoid to calculate every time the size of the lines from the beginning of the document, just calculate it from the previous cursor position.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Open a callgrind log file with 2.840.605 lines<br />
Go to the end of the file, and then play with the PageUp, PageDown and cursor keys.<br />
Before: it was unable to do continuous PageUp refreshes.<br />
After: the PageUp at any part of the file as as fast as in the beginning of the document.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12016">https://phabricator.kde.org/D12016</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/view/kateviewaccessible.h</div></div></div><br /><div><strong>To: </strong>jtamate, Kate<br /><strong>Cc: </strong>Frameworks, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>