Skip to content

Commit

Permalink
Enable Link Time Optimization for release_prebuilt profile (#4633)
Browse files Browse the repository at this point in the history
Co-authored-by: sydhds <[email protected]>
Co-authored-by: Leo-Besancon <[email protected]>
  • Loading branch information
3 people authored Feb 14, 2024
1 parent 9ce47f7 commit f88b1c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ opt-level = 3 # Speed-up the CI
# This profile is used for prebuilt binaries.
[profile.release_prebuilt]
inherits = "release"
codegen-units = 1
codegen-units = 1 # Do not split into multiple codegen units, improve performance, may compile slower
lto = true # Enables Link Time Optimization, enabling more aggressive optimizations across the entire codebase

# # Features
#
Expand Down

0 comments on commit f88b1c6

Please sign in to comment.