Faster browsing in MyVideos (1 Viewer)

jjj

New Member
March 24, 2007
3
3
45
Home Country
Denmark Denmark
I've had some serious performance problems when browsing folders in MyVideos, it could take anywhere from 5 to 20 seconds to enter a folder. I've been doing some debugging and it turned out that SetIMDBThumbs used something like 4*n^2 operations (n being the number of files in a folder), when entering a folder and the stacking algorithm was n^2 as well. Since I have 300 files in my main movie folder, it took quite a while to do the initial processing when entering that folder.
I've changed SetIMDBThumbs to be linear in the number of operations (excluding DB ops), using just the functions that were already in the VideoDatabase class (plus 1 extra utility function). The stacking has been changed to a n*log n algorithm.

I'll be doing som testing over the next couple of days and submit a patch if everything works as expected.

Cheers
John
 

jjj

New Member
March 24, 2007
3
3
45
Home Country
Denmark Denmark
Sadly the test didn't give me the results I had hoped for. On my development machine it only takes 1-2 seconds to load the folder, but on my htpc it still takes 6-8 seconds. Since my movies are located on my dev machine, i'm thinking that there's also some network stuff involved here. I'm not really sure how to proceed from here, but I'll look into it.
 

Users who are viewing this thread

Top Bottom