<table><tr><td style="">cullmann created this revision.<br />cullmann added reviewers: vkrause, dhaumann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />cullmann requested review of this revision.
</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/D15129">View Revision</a></tr></table><br /><div><strong>TEST PLAN</strong><div><p>make && make test</p>
<p>before, perf tells for</p>
<p>perf record -g ./bin/htmlhighlighter_test</p>
<h2 class="remarkup-header">> Rule::match 40% & KeywordListRule::doMatch 26%</h2>
<p>after the patch</p>
<h2 class="remarkup-header">> Rule::match 17% & KeywordListRule::doMatch 4.5%</h2>
<p>binary search was slower, contains is much faster on the VERY small strings</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15129">https://phabricator.kde.org/D15129</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>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>