D11487: optimization of TextLineData::attribute

Milian Wolff noreply at phabricator.kde.org
Thu Mar 22 12:36:07 UTC 2018


mwolff added inline comments.

INLINE COMMENTS

> anthonyfieroni wrote in katetextline.cpp:214-216
> Use operator->, it's faster than operator* and operator.
> 
>   first->offset

sorry, but that's simply not true at all.

Stylistic wise I agree, but an optimizing compiler will generate the same code for both.

REPOSITORY
  R39 KTextEditor

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

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


More information about the Kde-frameworks-devel mailing list