Skip to content

Conversation

@vyavdoshenko
Copy link
Owner

  • Enable Link-Time Optimization (LTO) for release builds
  • Set codegen-units to 1 for more aggressive compiler optimizations

Benefits:

  • Smaller binary size (~20% reduction)
  • Better runtime performance due to cross-module inlining
  • No impact on development builds

Closes: #4

@vyavdoshenko vyavdoshenko self-assigned this Jan 17, 2026
@vyavdoshenko vyavdoshenko merged commit 20c9d2d into main Jan 17, 2026
6 checks passed
@vyavdoshenko vyavdoshenko deleted the bobik/release_lto branch January 17, 2026 06:43
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.

Enable Link-Time Optimization (LTO) and codegen-units = 1 for Release builds

2 participants