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

Consider distributing release + LTO binary #982

Closed
ishitatsuyuki opened this issue Mar 13, 2017 · 3 comments
Closed

Consider distributing release + LTO binary #982

ishitatsuyuki opened this issue Mar 13, 2017 · 3 comments

Comments

@ishitatsuyuki
Copy link

The current rustup-init binary is 9.3M in size, while it shouldn't be so big to bootstrap (you need to download 10M before even seeing a message.) It seems to contain debug symbols too.

Building with release resulted in 5.0M binary, with LTO it's 4.9M (doesn't make much sense). This halves download, and makes the experience better.

@brson
Copy link
Contributor

brson commented Mar 16, 2017

Yes please. Patches wanted.

@remram44
Copy link

Adding lto=true, panic=abort I didn't actually see much of an improvement: https://github.com/remram44/rustup.rs/commit/45342602d142b75a685002d8f64d6d2233c08c7f And reading CI scripts, isn't this already building as release?

How did you get those down to 5MB?

@ishitatsuyuki
Copy link
Author

This is the result of my local toolchain (glibc, nightly). I'm not sure which configuration it uses for CI.

mbrubeck added a commit to mbrubeck/rustup.rs that referenced this issue Oct 11, 2018
mbrubeck added a commit to mbrubeck/rustup.rs that referenced this issue Oct 18, 2018
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

3 participants