[dolphin] [Bug 465357] Dolphin's UI freezes when stat() is slow

Dāvis bugzilla_noreply at kde.org
Wed Feb 8 03:33:43 GMT 2023


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

Dāvis <davispuh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davispuh at gmail.com

--- Comment #7 from Dāvis <davispuh at gmail.com> ---
(In reply to Andrew Gunnerson from comment #5)
[...]
> Since the UI is freezing despite the slow stat calls being on another
> thread, I'm assuming there's a StatJob::exec()/KJob::exec() call somewhere
> forcing the UI to wait for its completion. Unfortunately, I've had no luck
> at all tracking down where the job came from.

There are bunch of places that does IO. Eg. see
https://invent.kde.org/system/dolphin/-/blob/master/src/kitemviews/kfileitemmodelrolesupdater.cpp#L1283
(`isDir()`) and
https://invent.kde.org/system/dolphin/-/blob/master/src/kitemviews/kfileitemmodelrolesupdater.cpp#L837
(specifically `KFileMetaData::UserMetaData` there inside
`KBalooRolesProvider::roleValues`)

Things that are related to `KBalooRolesProvider` and `KFileMetaData` I'll be
fixing with my multi-threaded implementation. Basically moving whole
`KBalooRolesProvider` to a threadpool. Another refactoring I'm doing is that
I'm removing it from Dolphin because we actually have 2 different
implementations for this thing...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list