<table><tr><td style="">hein created this revision.<br />hein added a reviewer: Plasma.<br />hein added a subscriber: plasma-devel.<br />Restricted Application added a project: Plasma.
</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/D4343" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Profiling suggests that Folder View spends most of its time<br />
in delegate creation, which occurs en masse during various<br />
operations, e.g. scrolling the view or navigating folder<br />
hierarchy via popup dialogs or drill-down in list view mode.</p>
<p>This patch makes FolderItemDelegate substantially cheaper<br />
by bringing down its child object count considerably via<br />
a number of techniques:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Moving things that don't need to be in the delegate outside of it (e.g. a Timer that can be shared, a Connections that does work that can be done outside the delegate and a very costly ColorScope that can be moved up in the hierarchy.</li>
<li class="remarkup-list-item">Lazy-loading the expensive FrameSvgItem only in states which require it to be shown.</li>
<li class="remarkup-list-item">Managing action button life time procedurally as they are only needed during hover and even then only under a host of other conditions (instead of using Loaders, to save objects).</li>
</ul>
<p>Previously, scrolling a 7x6 Folder View widget pointed at<br />
my /usr/bin was nigh-unusable, now it's very nearly all<br />
smooth. The desktop mode is a little slower (due to<br />
expensive drop shadows below text labels) but also benefits.</p>
<p>This is a big refactor and needs more testing. In particular,<br />
the spring-loading behavior needs thorough checking due to<br />
code refactors.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>hein/fastFolders</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4343" rel="noreferrer">https://phabricator.kde.org/D4343</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>containments/desktop/package/contents/ui/FolderItemDelegate.qml<br />
containments/desktop/package/contents/ui/FolderView.qml<br />
containments/desktop/package/contents/ui/FolderViewLayer.qml</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>hein, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>