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