cullmann updated this revision to Diff 40852. cullmann added a comment.
Avoid saving the implicit capture group 0 on each regex match. That avoids allocating the match string each time (and the non-empty list). One anyways shall only access capture group >= 1 CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D15217?vs=40850&id=40852 REVISION DETAIL https://phabricator.kde.org/D15217 AFFECTED FILES data/schema/language.xsd src/lib/definition.cpp src/lib/definition_p.h src/lib/keywordlist.cpp src/lib/keywordlist_p.h src/lib/rule.cpp src/lib/rule_p.h To: cullmann, vkrause, dhaumann Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann