pkgx
pkgx copied to clipboard
`pkgx` adds 300ms+ to each invocation of a tool
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?
~ $ time go version
go version go1.23.0 darwin/arm64
go version 0.00s user 0.00s system 74% cpu 0.012 total
~ $ time pkgx [email protected] version
go version go1.23.0 darwin/arm64
pkgx [email protected] version 0.20s user 0.06s system 78% cpu 0.341 total
~ $ time ~/.local/bin/go version
go version go1.23.0 darwin/arm64
~/.local/bin/go version 0.17s user 0.06s system 51% cpu 0.438 total