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