SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. delete file in Dolphin OBSERVED RESULT 1. It takes 3-10 seconds to move any file in Dolphin, regardless of file size and regardless of the trash settings (e.g. whether or not any limit on trash folder size is in place). EXPECTED RESULT 1. File should be immediately moved to the trash folder. SOFTWARE/OS VERSIONS Operating System: EndeavourOS KDE Plasma Version: 5.26.3 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.7 Kernel Version: 6.0.7-arch1-1 (64-bit) Graphics Platform: X11
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. ***