Summary: | dolphin slow to move files to trash - delay of a few seconds before file is moved, regardless of file size | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | jabzwnein |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kfm-devel, meven29, nate, php4fan, serg, s_chriscollins |
Priority: | NOR | ||
Version First Reported In: | 22.08.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
jabzwnein
2022-11-15 01:02:08 UTC
I have noticed that moving files to trash takes longer and longer over time as the trash collects files. After emptying the trash, file deletion is faster until enough files have been deleted and it gets slower again. Just to clarify a bit: Are the files you are putting to trash have the same names as files already in the trash ? How many files do you have in the trash ? I have a MR that will help the situation https://invent.kde.org/frameworks/kio/-/merge_requests/1398 With it moving files to trash will be twice as fast when they are many files in the trash already. But still not close to instantaneous as one would expect, so it won't fix the bug, unless the patch improves things sufficiently in your opinions (jabzwnein@gmail.com and S. Christian Collins). Git commit 0ab81b6bac953b12b454bef4874946bb7fc8db85 by Méven Car, on behalf of Méven Car. Committed on 09/09/2023 at 11:51. Pushed by meven into branch 'master'. trashimpl: optimize TrashSizeCache::calculateSize Make TrashSizeCache::calculateSize not check modification dates. This divides by two the number of stats run for each file already in the trash each time a file is moved into the trash. M +25 -15 src/kioworkers/trash/trashsizecache.cpp M +3 -1 src/kioworkers/trash/trashsizecache.h https://invent.kde.org/frameworks/kio/-/commit/0ab81b6bac953b12b454bef4874946bb7fc8db85 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1410 Git commit b6a809b2cf6511ff850bfed453f75d3c5fd5d297 by Méven Car, on behalf of Méven Car. Committed on 14/09/2023 at 17:21. Pushed by meven into branch 'kf5'. trashimpl: optimize TrashSizeCache::calculateSize Make TrashSizeCache::calculateSize not check modification dates. This divides by two the number of stats run for each file already in the trash each time a file is moved into the trash. (cherry picked from commit 0ab81b6bac953b12b454bef4874946bb7fc8db85) M +25 -15 src/ioslaves/trash/trashsizecache.cpp M +3 -1 src/ioslaves/trash/trashsizecache.h https://invent.kde.org/frameworks/kio/-/commit/b6a809b2cf6511ff850bfed453f75d3c5fd5d297 *** Bug 504707 has been marked as a duplicate of this bug. *** |