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.
This commit is contained in:
Jack Grigg 2023-02-06 18:43:51 +00:00
parent feec543abf
commit 3c78835498
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ default-features = false
features = ["ansi", "env-filter", "fmt", "time"]
[profile.release]
lto = true
lto = 'thin'
panic = 'abort'
codegen-units = 1