Porco-Rosso / Butane

A web app to search and download free music from Vk.com
https://butane.stereostance.com/
8 stars 2 forks source link

search speed #9

Closed foshechka closed 9 years ago

foshechka commented 9 years ago

Why search speed is less than the standard script? What affects the speed of the impact of the results?

Porco-Rosso commented 9 years ago

The search speed is entirely dependent on the speed of the replies from vk.com

I guess is that more recent queries get cached by vk.com on their servers. I think this because searching the same query returns results much faster the second time. Also that would explain why searching for more popular songs produce results faster.

Because the bottleneck is not on the coding side (apart from playlist loading), there is nothing I can do about it.

foshechka commented 9 years ago

I say this because I think that in the script alashova Search works quickly and vkdl something to think about.

Porco-Rosso commented 9 years ago

I have no idea why his script would be faster. It's exactly the same in terms of search. I think his code even requests more results then mine does. maybe it has something to do with it being served through rawgit?

In case you are interested below is the stats: screen shot 2015-06-17 at 10 19 47 pm

foshechka commented 9 years ago

Ok, thnks.