-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
pkgx
adds 300ms+ to each invocation of a tool
#1033
Comments
Should be fixed in the just released v1.2.0. If you get a chance please take a look and let us know. You will need to do a single |
Thanks, I gave it a shot but it seems to be roughly the same:
|
Hmm the cache cannot be working since for me eg: $ time pkgx go version
go version go1.22.2 darwin/arm64
real 0m0.076s
user 0m0.053s
sys 0m0.018s
$ time ~/.pkgx/go.dev/v\*/bin/go version
go version go1.22.2 darwin/arm64
real 0m0.014s
user 0m0.005s
sys 0m0.007s So still slower but not nearly as slow as before: $ time ~/.pkgx/pkgx.sh/v1.1/bin/pkgx go version
go version go1.22.2 darwin/arm64
real 0m0.269s
user 0m0.198s
sys 0m0.042s
When you do |
When not pinning the version I get a similar result to you:
|
k can reproduce, this shouldn't be the case I'll figure it out. |
🙏 |
This doesn't matter much for some tools, but for others that are invoked a lot such as eg. C compilers in a large build, or
protoc
+plugins with a large number of.proto
files, this can really add up.I'm not sure where this time is spent, perhaps it's Deno bootstrap overhead?
The text was updated successfully, but these errors were encountered: