<table><tr><td style="">ahiemstra created this revision.<br />ahiemstra added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />ahiemstra 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/D27114">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>QDateTime::fromMSecSinceEpoch uses Qt::LocalTime by default. This involves an<br />
expensive localtime conversion. So instead force things to use UTC, as there<br />
is no need for timezone information when tracking durations.</p>
<p>This is especially noticeable on Bedrock Linux, which uses a Fuse mounted<br />
/etc, which is slower than a plain /etc and causes quite some slowdown there.<br />
See <a href="https://github.com/bedrocklinux/bedrocklinux-userland/issues/140" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/bedrocklinux/bedrocklinux-userland/issues/140</a> for<br />
details.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The screenedge unit test still passes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>dont-use-localtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27114">https://phabricator.kde.org/D27114</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/platforms/x11/standalone/screenedges_filter.cpp<br />
screenedge.cpp<br />
tabbox/x11_filter.cpp</div></div></div><br /><div><strong>To: </strong>ahiemstra, KWin<br /><strong>Cc: </strong>kwin, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>