Quote: Originally Posted by
enitalp 
There must be a bug somewhere.
0.000 Start cache subdir mp3 <=== this is the findfirst findnext, very simple thing
21.500 End cache subdir mp3
24.360 Start sort mp3 <=== this is the quicksort to sort by alphabetical order & by kind the file i found previously
24.360 End sort mp3
The quicksort takes no time to parse the thousand of file. and it's the heaviest code.
well, I just changed MUSIC_DIR to a directory with only a couple of albums and it started up in 5 seconds. All of this is on a network drive, which I'm sure doesn't help as well...
I still don't think it's a good idea to parse the whole music/videos folders every time at startup