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

optimize release build for size #111

Merged
merged 1 commit into from
Jan 13, 2022
Merged

Conversation

nrdxp
Copy link
Contributor

@nrdxp nrdxp commented Aug 4, 2021

There are few more things we could do to get it a bit lower. We could consider removing the ability to trace in a release build, and just abort, thus removing the need for the stack unwinding code. Also, stripping the binary helped remove about half a MB, but I don't think cargo has a way to do this automatically (that I could find).

@06kellyjac
Copy link
Contributor

Also, stripping the binary helped remove about half a MB, but I don't think cargo has a way to do this automatically (that I could find).

There's an unstable feature for it: https://doc.rust-lang.org/cargo/reference/unstable.html#profile-strip-option

It just merged into rustc so should make it to 1.58 rust-lang/rust#72110 (comment)

pr to stabilize in cargo: rust-lang/cargo#10088

@notgne2 notgne2 merged commit f2a3044 into serokell:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants