D11487: optimization of TextLineData::attribute

Jaime Torres Amate noreply at phabricator.kde.org
Wed Mar 21 12:14:33 UTC 2018


jtamate updated this revision to Diff 30117.
jtamate edited the summary of this revision.
jtamate added a comment.


  The problem with attribute() is that with a long line and word wrapping enabled,
  when the long line is shown, it is called  as many times as the length of the line,
  in my test case, 566.039 times.
  
  The list is not always so small...In my test file, the longest list has 7257 items.
  Therefore, previously it had to go trough, in average,  3628 items 566.039 times.
  
  Kate and Okteta are the only tools that can handle such files and be responsive to user input.

REPOSITORY
  R39 KTextEditor

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D11487?vs=29975&id=30117

REVISION DETAIL
  https://phabricator.kde.org/D11487

AFFECTED FILES
  src/buffer/katetextline.cpp
  src/buffer/katetextline.h

To: jtamate, #frameworks, #kate
Cc: mwolff, cullmann, michaelh, kevinapavew, ngraham, demsking, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180321/8530b0c4/attachment.html>


More information about the Kde-frameworks-devel mailing list