From 7a6c2cb2bc61418c0036e7a71cb0231ff77d553e Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Sat, 20 Feb 2021 11:06:46 -0800 Subject: [PATCH] Switch to thin lto for faster compilation Also, makes the bench and release profile match eachother so that tests built in release mode don't need to recompile everything compared to regular release builds. --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9c25dd9e56..1d8a67a7ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,8 +31,10 @@ members = [ # Optimizations based on https://deterministic.space/high-performance-rust.html [profile.release] -lto = "fat" +lto = "thin" codegen-units = 1 # debug = true # enable when profiling - +[profile.bench] +lto = "thin" +codegen-units = 1