Skip to content

Commit c853e74

Browse files
authored
Merge pull request #3969 from element-hq/quenting/enable-lto
Enable fat LTO & reduce the number of codegen units
2 parents 8f8f83a + 07f83be commit c853e74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,10 @@ features = ["serde"]
412412
[workspace.dependencies.wiremock]
413413
version = "0.6.2"
414414

415+
[profile.release]
416+
codegen-units = 1 # Reduce the number of codegen units to increase optimizations
417+
lto = true # Enable fat LTO
418+
415419
# A few profile opt-level tweaks to make the test suite run faster
416420
[profile.dev.package]
417421
argon2.opt-level = 3

0 commit comments

Comments
 (0)