<table><tr><td style="">broulik created this revision.<br />broulik added a reviewer: michaelh.<br />Restricted Application added projects: Frameworks, Baloo.<br />Restricted Application added a subscriber: Frameworks.<br />broulik 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/D11279">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The folder inclusion/exclusion configuration queries Solid for external media to exclude them, this adds a significant overhead to using FileIndexerConfig.<br />
In most places it is merely used to check whether file indexing is enabled in general.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Creating <tt style="background: #ebebeb; font-size: 13px;">DolphinViewActionHandler</tt> which checks Baloo availability on Dolphin startup showed up as 3% cost in the profiler. After this change it is less than 0.4%.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Verified that Baloo file places disappeared when disabling it</li>
<li class="remarkup-list-item">Verified that Dolphin search still enabled and disabled additional search criteria depending on the folder you're searching in and that it is using <tt style="background: #ebebeb; font-size: 13px;">baloosearch</tt> or <tt style="background: #ebebeb; font-size: 13px;">filenamesearch</tt> accordingly; also verified that the folder cache is populated when this happens</li>
</ul>
<p>Dolphin does not gray out sort options and additional roles for Baloo roles when disabled but that is a bug unrelated to this change</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11279">https://phabricator.kde.org/D11279</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/fileindexerconfig.cpp<br />
src/file/fileindexerconfig.h</div></div></div><br /><div><strong>To: </strong>broulik, michaelh<br /><strong>Cc: </strong>Frameworks, ashaposhnikov, michaelh, spoorun, nicolasfella, alexeymin<br /></div>