<table><tr><td style="">mwolff requested changes to this revision.<br />mwolff added a comment.<br />This revision now requires changes to proceed.
</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><div><p>Imo this should be using <tt style="background: #ebebeb; font-size: 13px;">KFormat::formatByteSize</tt>. <a href="https://api.kde.org/frameworks/kcoreaddons/html/classKFormat.html#ae7412420b70e2ca935d0ebed6770e313" class="remarkup-link" target="_blank" rel="noreferrer">https://api.kde.org/frameworks/kcoreaddons/html/classKFormat.html#ae7412420b70e2ca935d0ebed6770e313</a></p>

<p>And if that function is slow, add a benchmark and optimize it there so that everyone profits and not only the job tracker.</p>

<p>Furthermore: can you show me the callgrind file? I suspect the real issue is that <tt style="background: #ebebeb; font-size: 13px;">::byteSize</tt> is called too often here. This is for a progress bar I suspect, right? That should only update itself every X ms at the most, instead of doing it millions of times which I suspect is the case here?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R288 KJobWidgets</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>mwolff, broulik<br /></div>