-
Notifications
You must be signed in to change notification settings - Fork 13
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
What's the principle of operation? #3
Comments
I tried it on my workspace with many packages, and it's indeed much faster: $ time go list all > /dev/null
real 0m7.265s
user 0m6.202s
sys 0m2.686s
$ time gopkgs > /dev/null
real 0m0.027s
user 0m0.009s
sys 0m0.015s However, it does not appear to produce correct results. Many packages are missing. $ go list all | wc -l
4702
$ gopkgs | wc -l
1689 |
The difference of go list all and gopkgs is that go list all looks for go packages in your $GOPATH/src while gopkgs looks in your $GOPATH/pkg. Why |
That makes sense, thanks for explaining (and I think it's worth putting this in doc.go/README)! |
Hi there, I'm trying to better understand the purpose of this command.
From the README:
Are there any benchmarks comparing the performance?
Assuming it's faster, how does it achieve that, and what's the reason such an optimization could be not sent upstream into
cmd/go
so thatgo list all
is equally fast?Thanks!
The text was updated successfully, but these errors were encountered: