<table><tr><td style="">dfaure created this revision.<br />dfaure added a reviewer: dvratil.<br />Restricted Application added a project: KDE PIM.
</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/D8465" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>perf+hotspot shows that this is a horrible algorithm:<br />
<a href="http://www.davidfaure.fr/kde/perf_hotspot_itemsync.png" class="remarkup-link" target="_blank" rel="noreferrer">http://www.davidfaure.fr/kde/perf_hotspot_itemsync.png</a></p>

<p>I ported the code to the std::move (the algorithm), but I'm not<br />
sure how to test it, the itemsynctest unittest fails for me even<br />
before this change.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>none yet. It compiles, though :-)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </div></div></div><br /><div><strong>BRANCH</strong><div><div>Applications/17.08</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8465" rel="noreferrer">https://phabricator.kde.org/D8465</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/itemsync.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, dvratil<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>