<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>461847</bug_id>
          
          <creation_ts>2022-11-15 01:02:08 +0000</creation_ts>
          <short_desc>dolphin slow to move files to trash - delay of a few seconds before file is moved, regardless of file size</short_desc>
          <delta_ts>2025-12-29 00:40:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>22.08.3</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jabzwnein</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>dolphin-bugs-null</cc>
    
    <cc>kdebugs</cc>
    
    <cc>meven29</cc>
    
    <cc>nate</cc>
    
    <cc>php4fan</cc>
    
    <cc>serg</cc>
    
    <cc>s_chriscollins</cc>
    
    <cc>wiser.nature</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2173412</commentid>
    <comment_count>0</comment_count>
    <who name="">jabzwnein</who>
    <bug_when>2022-11-15 01:02:08 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195334</commentid>
    <comment_count>1</comment_count>
    <who name="S. Christian Collins">s_chriscollins</who>
    <bug_when>2023-01-10 04:22:16 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2250615</commentid>
    <comment_count>2</comment_count>
    <who name="Méven Car">meven29</who>
    <bug_when>2023-09-05 10:44:49 +0000</bug_when>
    <thetext>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&apos;t fix the bug, unless the patch improves things sufficiently in your opinions (jabzwnein@gmail.com and S. Christian Collins).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2251932</commentid>
    <comment_count>3</comment_count>
    <who name="Méven Car">meven.car</who>
    <bug_when>2023-09-09 12:43:51 +0000</bug_when>
    <thetext>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 &apos;master&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2252553</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-09-12 15:32:32 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1410</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2253007</commentid>
    <comment_count>5</comment_count>
    <who name="Méven Car">meven.car</who>
    <bug_when>2023-09-14 15:21:51 +0000</bug_when>
    <thetext>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 &apos;kf5&apos;.

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2427981</commentid>
    <comment_count>6</comment_count>
    <who name="John Kizer">john</who>
    <bug_when>2025-05-27 17:22:39 +0000</bug_when>
    <thetext>*** Bug 504707 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2480170</commentid>
    <comment_count>7</comment_count>
    <who name="aristsakas">aristsakas</who>
    <bug_when>2025-12-28 20:58:40 +0000</bug_when>
    <thetext>*** Bug 513739 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2480208</commentid>
    <comment_count>8</comment_count>
    <who name="aristsakas">aristsakas</who>
    <bug_when>2025-12-29 00:40:44 +0000</bug_when>
    <thetext>*** Bug 452014 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>