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 569221 - Importing a large directory with only a few new files is slow
Importing a large directory with only a few new files is slow
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: general
2.0.0
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-01-26 18:10 UTC by Wouter Bolsterlee (uws)
Modified: 2020-03-17 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Wouter Bolsterlee (uws) 2009-01-26 18:10:45 UTC
Importing a directories with only a few new files is very slow on my (admittedly slow) machine.

My assumptions: it looks like the directory tree is walked, and for each audio file a database lookup is done. This is slow. I assume this lookup is based on the filename only, so it would be much faster to query the database once using the equivalent of "SELECT DISTINCT filename FROM all_songs", and put those filenames in a list (or hash table with key=filename and value=dummy, or perhaps C# even has a "set" type) for quick lookup. Then, the files with a filename not occurring in this list can be imported as usual.

I should note that I haven't looked at the import code. Does this make sense at all?
Comment 1 Wouter Bolsterlee (uws) 2009-01-26 18:13:33 UTC
Oh, I forgot to mention memory is not an issue here. My machine plenty of RAM (just lack of CPU power).

Also note that building an temporary in-memory list of all file names does not take that much memory, even for a large library, say, 100 character path times a few thousand songs does not take that much space. Even in UTF-8 encoding this would be far less than 1 MB of RAM. Right?
Comment 2 Ran Jiao 2009-12-04 05:33:25 UTC
I too have this problem. I have a folder containing more than 20GB music, and banshee will keep importing for more than half an hour if I choose to import the entire folder -- I can't wait such long and just killed banshee, so I've no ideal how long it will really cost. Other music players like amarok and iTunes are also slow but cost only minuntes.
Comment 3 Pedro Villavicencio 2011-06-03 14:18:31 UTC
Same here it takes like an hour to import ~20000 songs, where rhythmbox takes no more than ~7 minutes.
Comment 4 André Klapper 2020-03-17 08:19:17 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.