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 codegen-units=1 to decrease binary size in release #390

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

In-line
Copy link
Contributor

@In-line In-line commented Oct 22, 2024

Before

❯ ls -lah target/release/lact         
-rwxr-xr-x 2 codemonkey codemonkey 6.9M Oct 22 18:45 target/release/lact

After

❯ ls -lah target/release/lact
-rwxr-xr-x 2 codemonkey codemonkey 6.4M Oct 22 18:46 target/release/lact

@In-line
Copy link
Contributor Author

In-line commented Oct 22, 2024

There is no compilation time difference in my system

@ilya-zlobintsev
Copy link
Owner

The release build compile times are dominated by LTO anyway, so this makes sense.

@ilya-zlobintsev ilya-zlobintsev merged commit d43ec9c into ilya-zlobintsev:master Oct 22, 2024
7 of 23 checks passed
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