<table><tr><td style="">cullmann updated this revision to Diff 47159.<br />cullmann added a comment.
</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/D17441">View Revision</a></tr></table><br /><div><div><p>avoid costly lineLength computation</p>
<p>this really is expensive, as we do a lookup of the line that kills<br />
the cache in the block lookup + we can skip that easily for non-last lines</p>
<p>costs 2% for large replaces</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D17441?vs=47157&id=47159">https://phabricator.kde.org/D17441?vs=47157&id=47159</a></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17441">https://phabricator.kde.org/D17441</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/buffer/katetextblock.cpp<br />
src/buffer/katetextblock.h<br />
src/buffer/katetextcursor.cpp<br />
src/buffer/katetextrange.h<br />
src/document/katedocument.cpp<br />
src/document/katedocument.h<br />
src/search/katematch.cpp<br />
src/search/katematch.h<br />
src/search/katesearchbar.cpp<br />
src/utils/documentcursor.cpp<br />
src/vimode/marks.cpp<br />
src/vimode/marks.h</div></div></div><br /><div><strong>To: </strong>cullmann, dhaumann, Kate, loh.tar<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>