Slow trash operations on mounted drives
When removing files on a network share (cifs, Samba) the time to remove the files increases slightly with each extra file removed. When managing my photos and other backups I sometimes need to delete several hundred files and then it becomes very laggy. This can be resolved by emptying the trashcan. However, is the trashcan is full the empty operation takes ages (speed of deletion slowly increases as more files are deleted).
Also relevant, the NAS storage in question is quite fast and is connected with 2.5GBs ethernet.
Version information
thunar 4.18.11 EndeavourOS (arch)
Steps to reproduce
- Go to a mounted network drive, remove several batches of 100 files.
- Empty the trashcan.
- Go drink coffee or take a walk in the park.
Current behavior
Very slow deletion times. I know deletion of small files is slow especially on hard drives compared to a ssd. However, I would not expect such slow deletion times.
Expected outcome
Better responsiveness when deleting files, perhaps make the process smarter by checking if things can be done in bulk? or when removing files in a directory, perhaps something to detect its the same directory and not update its contents immediately since that increases the time of the operation. Since its not a real deletion and you put things in the trashcan constant updates of the folder contents are perhaps not needed.