<table><tr><td style="">cullmann updated this revision to Diff 40852.<br />cullmann added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15217">View Revision</a></tr></table><br /><div><div><p>Avoid saving the implicit capture group 0 on each regex match.<br />
That avoids allocating the match string each time (and the non-empty list).<br />
One anyways shall only access capture group >= 1</p></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D15217?vs=40850&id=40852">https://phabricator.kde.org/D15217?vs=40850&id=40852</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15217">https://phabricator.kde.org/D15217</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/schema/language.xsd<br />
src/lib/definition.cpp<br />
src/lib/definition_p.h<br />
src/lib/keywordlist.cpp<br />
src/lib/keywordlist_p.h<br />
src/lib/rule.cpp<br />
src/lib/rule_p.h</div></div></div><br /><div><strong>To: </strong>cullmann, vkrause, dhaumann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>