D11487: optimization of TextLineData::attribute

Anthony Fieroni noreply at phabricator.kde.org
Thu Mar 22 05:48:38 UTC 2018


anthonyfieroni added inline comments.

INLINE COMMENTS

> katetextline.cpp:214-216
> +    if (first != m_attributesList.cend() && (*first).offset <= pos && pos < ((*first).offset + (*first).length))
> +    {
> +        return (*first).attributeValue;

Use operator->, it's faster than operator* and operator.

  first->offset

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/d3f7b72d/attachment.html>


More information about the Kde-frameworks-devel mailing list