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

[anchor] update compiler config to reduce binary size #194

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

yurushao
Copy link
Contributor

@yurushao yurushao commented Aug 18, 2024

The key is the opt-level:

  • "z" is for small binary size but might slow down execution
  • opt-level=3 is for fast execution but increases binary size
  • "s" is something in between

Let's prefer small binary size to save some SOL for mainnet deploy.

@yurushao yurushao requested a review from 0x0ece August 18, 2024 02:04
] }
spl-associated-token-account = { version = "3.0.2", features = [
"no-entrypoint",
] }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

auto formatted

@yurushao yurushao merged commit d84b9b8 into main Aug 18, 2024
1 check passed
@yurushao yurushao deleted the optimize_code_size branch August 18, 2024 21:38
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