Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is that with any other size optimizations? I think by default, most of them (like codegen-units=1, remove panic handling, etc) are tuned for performance, not binary size, so might want to look into if the results are different if you change them.


Stripping can save a huge amount of binary size, there’s lots of formatting code added for println! and family, stacktrace printing, etc. However, you lose those niceties if stripping at that level.


I only ran both with `cargo build --release`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: