precompute attribute format for context & rules

Authored by cullmann on Sep 1 2018, 3:35 PM.

Description

precompute attribute format for context & rules

Summary:
avoid costly lookup, e.g. 3% of runtime of highlighting

simplifies the highlightLine stuff, as we only need to keep track of format changes,
not lookup contexts in addition

fixes that we don't see that formats change if name is equal in different
definitions

accessors are inline, the classes are internal anyways

Test Plan:
make && make test

updated references, now we properly applyFormat if we walk from one into a other
definition with same name formats

Reviewers: vkrause, dhaumann

Reviewed By: vkrause

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D15207

Details

Committed
cullmannSep 1 2018, 4:08 PM
Reviewer
vkrause
Differential Revision
D15207: precompute attribute format for context & rules
Parents
R216:2475bc4dd2ca: avoid word delimiter check at start of keyword
Branches
Unknown
Tags
Unknown