Re: Could this be faster?
- Posted by ags <eu at 531pi.co.nz> Dec 13, 2005
- 554 views
C Bouzy wrote: > > Hi All, > > I am trying to speed up how I scan a audio folder and add it to a Playlist. > It works fast if there is only a few hundred files, but if there is 500 > or more files it can get to be slow. I scan the folder using walk_dir > and add each file into the database. Do any of you guys think I can do > this without using walk_dir? I have pasted a bit of the code below. I wrote an MP3 playing system for the company I work for (so I can't release it--in it's current form :) and I found using Greg's win_walkdir to be much faster than walk_dir. But it still took about 10 minutes to create the database from scratch (for about 9000 tracks). After that though, it periodically scans the folders for changes which takes all of 1.6s. I think the built-in walk_dir took about 30-40s on my test system and I never tried it on the production system (as it would probably take about an hour?). I can post more on this if you're interested but have to go to work nowGary