Skip to content

Commit

Permalink
feat: enable LTO and codegen-units = 1 optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwamizamurai authored Jan 20, 2025
1 parent f31228f commit a9fc92f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ split-debuginfo = 'packed'
strip = 'debuginfo'
# Exit process with SIGABRT when any thread panics
panic = 'abort'
# Enable Link Time Optimization for better runtime performance
lto = true
# Use single codegen unit to enable better optimizations
codegen-units = 1

# Same as release, but build binary with debug symbols (binary size will be ~ 1GB).
[profile.release-dbgsym]
Expand Down

0 comments on commit a9fc92f

Please sign in to comment.