Skip to content

Commit

Permalink
Enable link-time optimizations (#1227)
Browse files Browse the repository at this point in the history
This change enables LTO for release builds, which reduces CPU and
memory usage in load tests.

This increases compile-time overhead, so we also update rust-toolchain
to 1.55.0 beta7 (due out 2021/9/9), which substantially reduces compile-
time overhead.
  • Loading branch information
olix0r authored Aug 27, 2021
1 parent f6b1282 commit 8e1084e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ members = [
# disable them.
[profile.dev]
debug = false

[profile.test]
debug = false

[profile.release]
lto = true

[patch.crates-io]
webpki = { git = "https://github.com/linkerd/webpki", branch = "cert-dns-names-0.21" }
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.54.0
beta-2021-08-22

0 comments on commit 8e1084e

Please sign in to comment.