<table><tr><td style="">mwolff created this revision.<br />mwolff added a reviewer: dfaure.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />mwolff 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/D9823" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When using this method with a string argument, the method would need<br />
to be queried every time via QMetaObject::indexOfMethod. Using a<br />
functor one can get rid of this, saving a few cycles which can<br />
add up when handling many inotify events.</p>

<p>Note that the benchmark timing does not really improve significantly.<br />
Using a profiler like perf, we do see that less cycles are consumed<br />
though. In my measurement, this reduces the cpu cyles by about 2%.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9823" rel="noreferrer">https://phabricator.kde.org/D9823</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/io/kdirwatch.cpp</div></div></div><br /><div><strong>To: </strong>mwolff, dfaure<br /><strong>Cc: </strong>Frameworks<br /></div>