<table><tr><td style="">jtamate created this revision.<br />jtamate added reviewers: Frameworks, Kate.<br />Restricted Application added projects: Kate, 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/D11487">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Instead of getting the element to check 4 to 5 times each time, using the constant iterator, do it only one.</p>
<p>From 76,84% of cpu <a href="https://phabricator.kde.org/F5758695" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F5758695: kate_before.png</a></p>
<p>to 19.12% of cpu <a href="https://phabricator.kde.org/F5758696" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F5758696: kate_after.png</a></p>
<p>in callgrind.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Open a XML file with 4 lines an a line of 566039 characters long.</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/D11487">https://phabricator.kde.org/D11487</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/buffer/katetextline.h</div></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, Kate<br /><strong>Cc: </strong>michaelh, kevinapavew, ngraham, demsking, cullmann, sars, dhaumann<br /></div>