-
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
on linux x86-64 the binary is very large / can be 4.66x smaller with strip/upx --lzma #937
Comments
the binary is, as i understand it, the if you can reduce the size of |
basically it will be large until deno can make smaller binaries or we switch to rust. Sorry. |
So I've gotten the deno binary for x86-64 |
It’s unlikely that stripping deno would result in a smaller |
and
using upx with --lzma it gets even below 30 mb!!! (factor 4.66 smaller) |
like, I'm just saying that the size of deno is unlikely to effect the size of the binaries it produces. But who knows, maybe. Anyway, building pkgx is trivial. We have instructions in the readme, but basically it's |
@mxcl my hero! it works, well... spits some warnings but it works: https://sid.ethz.ch/debian/pkgx/build/pkgx/ the binary is 42 MB and running it with
gives
|
k well, this is interesting |
the more so since UPX is portable and you could also strip/upx --lzma your other binaries! but instead opening a new issue. are you interested in distributing pkgx in debian, like in the archive? i can package software for it, however deno is not there yet... |
Interested in how it effects startup time. Also we clearly need to pkg And would love to get into Debian, but yeah, since they don't have deno yet it seems tricky |
memory/cpu > disk (no matter rotational, ssd, nvme). i don't notice anything on my 2011 machine. for deno in debian there's https://bugs.debian.org/961337 |
found some further info here: denoland/deno#9198 So indeed, stripping deno will lead to smaller compiled binaries. I worry that it may result in non functional binaries. Defaulting it is a risk for just-works but maybe that's the wrong trade off and we should aim for performance |
aside: stack traces for deprecated calls seems extreme. |
i tried the same strip/upx/upx --lzma on macOS. no luck |
is there a place to see all pkgx available binaries? and a way to search for it??? |
did you mean pkgx? if so, you can review the packages here: https://pkgx.dev/pkgs/ most of the binaries are lists in the |
the search box will search for programs (binaries) that pkgs provide |
BTW #978 will make pkgx binaries a little smaller. |
although
strip
andcompress
cut the size, the binary does not work anymore. any idea why? any chance to make it smaller?The text was updated successfully, but these errors were encountered: