<table><tr><td style="">jtamate updated this revision to Diff 28274.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-sxunivqwth6km77/" rel="noreferrer">(Show Details)</a><br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-umcvx4ib7cad5gi/" rel="noreferrer">(Show Details)</a><br />jtamate 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/D10857" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Changed all qSort in Qlist to std::sort.<br />
At least the people with Intel(R) Core(TM) i5-4200U (model 69) will see a big improvement in time.</p>
<p>I tried with KDE Neon with a kernel without patches for the cpu, and with the dolphin included in Neon and OpenSuse, the results are the same: very slow using qSort.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">qSort is depecreated in Qt5<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> in favor of std::sort</span>.<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">But qSor</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">In some CPUs i</span>t is also <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">quite slow compared to</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">more than 200 times slower than</span> std::sort<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.<br />
<br />
There are 11 more uses of qSort in kio</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">, in many others qSort is a little bit faster</span>.</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>{F5730673}<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
And times around 300.000 miliseconds in an i5 (model 69)</span><br />
<br />
Select 50.000 small files and press Shift-Supr, cancel and press Shift-Supr again.<div style="padding: 8px 0;">...</div>{F5730676}<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
And times around 900 miliseconds in an i5 (model 69)</span><br />
</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D10857?vs=28100&id=28274" rel="noreferrer">https://phabricator.kde.org/D10857?vs=28100&id=28274</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10857" rel="noreferrer">https://phabricator.kde.org/D10857</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/ksslcertificatemanager.cpp<br />
src/filewidgets/kurlnavigatorbutton.cpp<br />
src/ioslaves/http/http_cache_cleaner.cpp<br />
src/kpac/script.cpp<br />
src/kpasswdserver/kpasswdserver.cpp<br />
src/widgets/kdirmodel.cpp<br />
src/widgets/kfileitemactions.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, dfaure<br /><strong>Cc: </strong>markg, apol, michaelh<br /></div>