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 488517 - GtkFileChooserDialog too slow when lots of files
GtkFileChooserDialog too slow when lots of files
Status: RESOLVED DUPLICATE of bug 322314
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.10.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2007-10-20 07:19 UTC by Andrew Smith
Modified: 2007-10-22 17:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Smith 2007-10-20 07:19:56 UTC
Please describe the problem:
Try to navigate to /usr/bin using a no-frills GtkFileChooserDialog. My computer is a bit old, but it's far from being obsolete and it sometimes takes minutes (!!) to display that directory.

I implemented a very similar file list using a GtkTreeView in my own application and reading the directory, even that large, takes very little time (~2 seconds for /usr/bin). I had to make sure the view is disconnected from the model before doing the update, but it looks like GtkFileChooserDialog is doing something else - because there's a lot of hard-drive activity, not just CPU.

Will you please fix it? I need to navigate to /usr/bin once in a while to select what app to open files with from Firefox, and the experience ranges from annoying to `kill firefox-bin` because I don't have the time to wait for the file chooser to say hello to every file.

I have GTK 2.10. Please let me know if there's something I can do to help.

Thanks! 

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Federico Mena Quintero 2007-10-22 17:33:17 UTC
This happens because, seeing that the files in /usr/bin have no extension, the icon infrastructure tries to sniff every single file to see if it can figure out its MIME type.


*** This bug has been marked as a duplicate of 322314 ***