chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.31k stars 903 forks source link

choco search super slow compared to website #1740

Open esamo opened 5 years ago

esamo commented 5 years ago

Hi there! Nice job on the tool, much appreciated!

  1. I can't leave it though without saying that cmd.exe choco search works super slow compared to searching on the website https://chocolatey.org/packages. It should be faster as it does not involve browser, images and a lot of stuff, hence I don't understand at all why is this so slow. It takes 8 seconds to fetch packages by query google in command line and it takes almost no time at all on the website, it's uncomparable.

  2. Another thing is that all the packages could be downloaded with update command exactly like it happens in linux package manager and then search is performed on locally stored index.


Chocolatey v0.10.11 Windows 10 x64

ferventcoder commented 5 years ago

Howdy @esamo - thanks for the kudos! I'm not sure what is causing the slowness for your environment, but it could be something with a proxy it is working through. It's hard to say, I typically find the command line much much faster than the website. Due keep in mind it would be determined by a few factors:

As far as update - The second item is called Package Indexing - something we have on our roadmap. We are quite familiar with other platforms and package indexes have been on my list for a few years.

I'm going to put this into _Triaging, and we'll visit back to see if you determined what the network issue was along the route for choco search.

ferventcoder commented 5 years ago

Actually, are you calling choco search somefilter or simply choco search? The latter would be returning results for all 6K packages, so it's gonna be a bit slow for sure. It doesn't do paging by default.

ferventcoder commented 5 years ago

@esamo also, check out the comments over here on IPv6 causing network slowness - https://github.com/chocolatey/choco/issues/1748

esamo commented 5 years ago

Ok so my env is:

IPv4 No proxy No antivirus other than Windows Defender Sources - default ones Using choco search google

Looks to me this is about data size. It's faster on a better connection. These are just lines of text though, so I'm confused.

I did some testing. Why 210 package names (12 kB of text) are using 13 Mb/s for about 1s or 5Mb/s for 4s?

ferventcoder commented 5 years ago

@esamo upgrade to Chocolatey 0.10.13 and see if that improves your results.