<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added a reviewer: Ark.<br />Herald added a subscriber: kde-utils-devel.<br />Herald added a project: Ark.<br />nicolasfella 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/D26357">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Building the icons datastructure is the most significant bottleneck when opening large archives. Knowing all the icons at loading time is unnecessary since most elements won't be visible anyway.<br />
This patch moves the icon storing into the Entry class where it is lazily determined the first time it is accessed. This improves the initial archive loading time significantly.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>It's hard to give exact numbers, but my main test archive (the Android NDK) went from ~3 seconds to load to "pretty much instant"</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R36 Ark</div></div></div><br /><div><strong>BRANCH</strong><div><div>megaopto</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26357">https://phabricator.kde.org/D26357</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kerfuffle/archiveentry.cpp<br />
kerfuffle/archiveentry.h<br />
part/archivemodel.cpp<br />
part/archivemodel.h<br />
part/overwritedialog.cpp<br />
part/overwritedialog.h<br />
part/part.cpp</div></div></div><br /><div><strong>To: </strong>nicolasfella, Ark<br /><strong>Cc: </strong>kde-utils-devel, fbampaloukas, tctara<br /></div>