<table><tr><td style="">jtamate retitled this revision from "Optimization of byteSize(double size)" to "Code de-duplication in byteSize(double size)".<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-cehri63uttoemwh/" 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-2icyatue2f2lw6u/" rel="noreferrer">(Show Details)</a>
</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/D9770" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">BUG: 384561<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
<br />
Copying 20Gib, using callgrind, before it used 5,2% of the cpu, and<br />
after only 0,58%.</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Applying this patch, the file copy speed is</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">This code is used to pretty print</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">same as cp/mv but the</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">amount of data copied.</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">cpu usage grows from 40% up to 80% spent in io-wait</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Replace this duplicated code by calling formatByteSize from KFormat</span>.</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">callgrind of dolphin moving 4Gb files from ext4 to ntfs as in the <br />
bug 384561</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R288 KJobWidgets</div></div></div><br /><div><strong>BRANCH</strong><div><div>performance (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9770" rel="noreferrer">https://phabricator.kde.org/D9770</a></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, mwolff<br /><strong>Cc: </strong>ngraham, cfeck, mwolff, broulik<br /></div>