https://bugs.kde.org/show_bug.cgi?id=384880

--- Comment #9 from RJVB <rjvber...@gmail.com> ---
Created attachment 108017
  --> https://bugs.kde.org/attachment.cgi?id=108017&action=edit
on-demand set-up of dir-only dirwatching

This is a PoC implementation of my idea of deferring the dirwatcher feeding to
the worker that does the actual project directory traversal (the
FileManagerListJob class), for now coupled with the possibility to disable
dirwatching for my own convenience.

Initial tests show that
- big project import is a *lot* faster
- dirwatching actually works on Mac.

I've used a QSet to avoid repetitive calls to KDirWatch::contains(). I haven't
timed it, but judging from the latter's implementation the former should be
considerably faster. 

I hope I haven't missed a place or two where entries have to be removed from
the dirwatcher.

Let me know if this is mature enough to phab it?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to