From 3c78835498c4cf1ed493b3faf7bb3d0ca0721e34 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 6 Feb 2023 18:43:51 +0000 Subject: [PATCH] rust: Compile with ThinLTO This should achieve similar performance gains to "fat" LTO (which we were previously using) while taking substantially less time to run (over 20s saved on a Ryzen 9 5950X). Part of zcash/zcash#6065. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 62e39a1ca..9f201bd20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,7 +109,7 @@ default-features = false features = ["ansi", "env-filter", "fmt", "time"] [profile.release] -lto = true +lto = 'thin' panic = 'abort' codegen-units = 1