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

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/7497fe5
                   |                            |787dc84e965d6924eafc5337a3a
                   |                            |f0a236

--- Comment #2 from Méven <[email protected]> ---
Git commit 7497fe5787dc84e965d6924eafc5337a3af0a236 by Méven Car.
Committed on 22/10/2026 at 10:32.
Pushed by meven into branch 'master'.

kfileitemmodelrolesupdater: wait until a file stops changing to resolve it
again

A file that is being downloaded changes all the time, and the directory
lister reports it about every 500 ms. Before this change, the roles of a
changed file waited until no file had changed for 100 ms. The changes of
a download are further apart than that, so its preview was generated
again for each change. For a video, a kioworker then used about 25% of a
CPU for the whole download.

The first change of a file is still resolved at once. A file that changes
again within 2 seconds is resolved once it has not changed for 2 seconds.
The wait is per file, so a file that keeps changing no longer delays the
other files.

M  +47   -16   src/kitemviews/kfileitemmodelrolesupdater.cpp
M  +10   -6    src/kitemviews/kfileitemmodelrolesupdater.h
M  +68   -0    src/tests/kfileitemmodelrolesupdatertest.cpp

https://invent.kde.org/system/dolphin/-/commit/7497fe5787dc84e965d6924eafc5337a3af0a236

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

Reply via email to