GNOME Bugzilla – Bug 310642
File Selector is slow because it always stats all files in current directory
Last modified: 2011-02-22 19:41:13 UTC
Distribution/Version: Fedora Core 4 There's no need to stat ./* until I click "Browse for other folders". The current behaviour makes GTK apps unpleasant for NFS users who want to save something in their homedir.
I second that. Additionally, in galeon my default save-as directory is ~/bg, which is on NFS like everything else in my homedir and contains ~3000 files. Now, the save-as dialog stats each of these files 5 (five!) times. So it takes ~25 seconds for the save-as dialog to pop up on my Athlon XP 1700+. And all those stats are pointless anyway, since I don't click on "Browse for other folders" (it is highly impractical to use, I can't type in directory names, CTRL+l kind of works, but is missing tab completion and display of directory contents). It also still stats $HOME/*, even though the directory is $HOME/bg . BTW, I'm using Debian/unstable.
There's a lot of superfluous stat()ing going on. See for example bug #302322, wherein some of this was fixed in the Unix backend. I'll start a wiki page to document the optimization effort for the file chooser --- this is a rather big topic. See also bug #154394.
See also https://bugs.freedesktop.org/show_bug.cgi?id=3529
This is because the Name entry populates its completion list. I'll be changing this behavior soon.
*** Bug 467709 has been marked as a duplicate of this bug. ***
This no longer happens. If "Browse for other folders" is collapsed, the file chooser won't even get the file list for the current directory unless you initiate file completion.