<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, ngraham, astippich, poboiko.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />bruns 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/D21578">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The mimetype is only required if all the other checks pass, i.e. when<br />
the file has been modified or added.</p>

<p>It is beneficial to swap the order of timestamp and mimetype checks, as<br />
the mimetype determination is much more expensive than the timestamp<br />
retrieval, and the mimetype filter will only reject files occasionally<br />
while the mtime filter will reject files most of the times.</p>

<p>Skip the mimetype determination for directories which would return<br />
wrong results anyway, either "application/octet-stream" or even<br />
"text/plain" for a directory named "test.log".</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>submit_unindexed</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21578">https://phabricator.kde.org/D21578</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/unindexedfileiterator.cpp<br />
src/file/unindexedfileiterator.h</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, ngraham, astippich, poboiko<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>