-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
(exa PR) 1160: Update Cargo.toml to optimise binaries for size #23
Conversation
Strip binaries, change optimisation level to heavily optimise for size, change codegen units to 1, which slows compile times but adds maximum size optimisations.
This looks obviously correct, but opinionated. What do you think @sbatial ? Specially |
I've ran the possible combinations and I'd say
Because I didn't know what to make of the opt-levels and the cargo documentation specifically says
I did do just that:
With the opt-levels being:
(once again from the cargo book section linked above) What is vectorization? I have no clue either, but apparently it is optimizing for modern CPU architectures by/and using some level of parallelization for loops: https://en.wikipedia.org/wiki/Automatic_vectorization So my final verdict:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comment
see: #23 (comment) Co-authored-by: sbatial <[email protected]> Signed-off-by: Christina Sørensen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Forgot to mention: |
see: eza-community#23 (comment) Co-authored-by: sbatial <[email protected]> Signed-off-by: Christina Sørensen <[email protected]>
https://github.com/ogham/exa/pulls/1160