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

Set opt-level for release to s #200

Merged
merged 1 commit into from
Jul 5, 2022
Merged

Set opt-level for release to s #200

merged 1 commit into from
Jul 5, 2022

Conversation

NobodyXu
Copy link
Member

@NobodyXu NobodyXu commented Jul 3, 2022

O3 mostly enables float optimization, more aggressive loop unrolling and
function inline.

O2 is probably OK, but I want to reduce the binary size a bit by using
opt level "s".

Edit:

The CI shows that the binary size sees a significant reduction for all targets, but does not have much impact on the performance of the binary.

It's likely that the bottleneck is the network and IO.

Also, if this is found to be a problem later, we can always override the profile for the crates that matters, e.g. zip, tar, bytes.

Signed-off-by: Jiahao XU [email protected]

O3 mostly enables float optimization, more aggressive loop unrolling and
function inline.

O2 is probably OK, but I want to reduce the binary size a bit by using
opt level "s".

Signed-off-by: Jiahao XU <[email protected]>
@NobodyXu NobodyXu marked this pull request as ready for review July 3, 2022 08:28
@passcod passcod merged commit 408c427 into cargo-bins:main Jul 5, 2022
@NobodyXu NobodyXu deleted the turn-down-opt-level-in-ci branch July 5, 2022 10:00
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.

2 participants