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

chore: minimize release binary size #322

Merged
merged 1 commit into from
Oct 19, 2022
Merged

chore: minimize release binary size #322

merged 1 commit into from
Oct 19, 2022

Conversation

chunshao90
Copy link
Contributor

@chunshao90 chunshao90 commented Oct 19, 2022

Which issue does this PR close?

Closes #

Rationale for this change

Minimize release binary size.
Refer to min-sized-rust.

What changes are included in this PR?

  • Enable lto.
  • Set opt-level to "z".
    The new setting minimizes the release binary size from 1.3G to 510M.

Are there any user-facing changes?

How does this change test

Copy link
Contributor

@archerny archerny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@archerny archerny merged commit d7c80c1 into apache:main Oct 19, 2022
chunshao90 added a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
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