D11827: Do not retrieve mtime from database repeatedly when sorting

Michael Heidelbach noreply at phabricator.kde.org
Sat Mar 31 08:16:35 UTC 2018


michaelh requested changes to this revision.
michaelh added a comment.
This revision now requires changes to proceed.


  Specially with `--limit` this is a considerable speed gain. Thank you.

INLINE COMMENTS

> searchstore.cpp:122
>  
> -        while (it->next() && (limit < 0 || i < end)) {
> +        while (offset && it->next())
> +            offset--;

Please use braces.

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D11827

To: bruns, #baloo, michaelh
Cc: michaelh, #frameworks, ashaposhnikov, astippich, spoorun, ngraham, alexeymin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180331/e44c2e35/attachment.html>


More information about the Kde-frameworks-devel mailing list