For recent tracks I even had to limit it to 10 tracks per page.
Quote from: JohanDeBock on 04 February, 2011, 11:26:20 AMFor recent tracks I even had to limit it to 10 tracks per page.that was a bug at last.fm's end and should be fixed now.http://www.last.fm/group/Last.fm+Web+Servi.../21604/_/669343
2. foo_scrobblecharts was far much faster (why is it so fucking slow?? around 5 minutes to find 20x similar artists to ac/dc and 50 tracks each )
0.95 + foo_scrobblecharts1. run -> 68 seconds2. run -> 2 seconds1.13 + foo_softplaylist1. run -> 340 seconds !!2. run -> 69 seconds
Can somebody make this benchmark too?
nope, that isn't happening here. (latest component / foobar)
can anybody tell me, why those plugins take less time in the second run?isn't the list of artists/songs sucked down from last.fm calculated freshly on each run?just curious...Quote from: Krautmaster on 22 February, 2011, 02:55:49 PM0.95 + foo_scrobblecharts1. run -> 68 seconds2. run -> 2 seconds1.13 + foo_softplaylist1. run -> 340 seconds !!2. run -> 69 seconds
Will look into it when I have time. But it probably has to do with http caching and the change to the internal foobar http functionality at some point.I always thought Last.fm has become slower and didn't bother.
I can't be the matching algorithm because that is serveral order of magnitude faster than the one in foo_scrobblecharts.
2. track result is better (ordered playlist, artist included again)
3. playlist result is better, i dont have to delete the result playlists all the time! sucks
I would suggest you do mulitple http requests at once (try not to break the http specs too badly here )
QuoteI can't be the matching algorithm because that is serveral order of magnitude faster than the one in foo_scrobblecharts.Not going to lecture you on optimization, but: you're doing in wrong . Orders of magnitude still don't matter if you are sorting a list of <1000 entries once on a modern cpu. One tends to optimize every line of code, but you should only optimize the parts of your code that actually take time. and in plugin like this one, this is obviously the networking part.