D17441: tune editing actions for large number of small edits

Christoph Cullmann noreply at phabricator.kde.org
Sun Dec 9 00:18:34 GMT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181209/492f26de/attachment.html>


More information about the Kde-frameworks-devel mailing list