Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choco search super slow compared to website #1740

Open
esamo opened this issue Feb 26, 2019 · 5 comments
Open

choco search super slow compared to website #1740

esamo opened this issue Feb 26, 2019 · 5 comments

Comments

@esamo
Copy link

esamo commented Feb 26, 2019

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
Copy link
Member

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:

  • How many sources do you have configured?
  • Is there a proxy?
  • Is anything inspecting the traffic from choco and slowing it down (like a anti-virus solution)?

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
Copy link
Member

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
Copy link
Member

@esamo also, check out the comments over here on IPv6 causing network slowness - #1748

@esamo
Copy link
Author

esamo commented Mar 12, 2019

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants