After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 343616 - Deleting many files in opened folder takes very long time
Deleting many files in opened folder takes very long time
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: Cut Copy Paste Undo
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-01 17:12 UTC by Sebastien Bacher
Modified: 2015-06-08 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-06-01 17:12:26 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/47842

"steps to reproduce:

1. Be sure you have a "delete" option in your nautilus contextmenu (see behaviour in nautilus options)

2. Use Nautilus to navigate to a directory with many files you can delete, e.g. ~/.thumbnails/normal (For me, that folder included about 10000 files)

3. Select all files (e.g. with CRTL+A) and choose "delete" from the contextmenu.

what happens:
Deleting these files takes ages (for me: 10000 files in prospected 11 hours) and CPU load is maximum.

Probably because nautilus sorts all files after each one delted.

When I closed that nautilus window, deleting was a question of seconds.

what should happen:
Deleting many files should be fast and shouldn't stress the CPU."
Comment 1 Bruno Santos 2006-06-19 05:00:53 UTC
I got a similar behavior browsing a comics directory, with gifs, and ~1500 files.

Can it be related to file preview? Anything I try to do gets cpu at 100% and freezes nautilus (Select all, change view, etc).
Comment 2 Emmanuel Fleury 2008-11-15 00:01:31 UTC
Still there in 2.25.1 (HEAD)... An interesting performance issue.

I reproduced it through as small shell command to populated the directory:
for i in `seq 10000`; do touch $i.txt; done
Comment 3 André Klapper 2011-08-11 12:28:50 UTC
[Bumping version number as per comment 2]
Comment 4 André Klapper 2011-08-11 12:29:21 UTC
Also see bug 356836
Comment 5 nodiscc 2012-08-01 12:49:31 UTC
Slightly different results here. Steps:
 * Enable the "permanent delete" option in nautilus
 * $ seq 10000 | xargs touch

Results:
 * the shell command 'rm *' gives me the best results. 0m0.477s
 * the shell command 'trash-put *' (trash-cli debian package) takes 0m24.341s
 * nautilus' "Delete" menu entry command (with all files selected) takes a little while, (0m16.982s , approximative measurement with 'time cat' in a terminal window)
 * nautilus' "Put to trash" command is the longest to complete (measured 0m54.031s)

Nautilus 3.4.2-1 in Debian

Can someone confirm this behaviour?
Comment 6 Alexandre Franke 2015-06-08 10:40:14 UTC
I tried all of these with 3.14 and all were quite fast (less than 5 seconds). Closing as obsolete.