From 6bda402a12507142de978bfdaba91d3a54d49af5 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 18 Feb 2025 22:41:58 -0500 Subject: [PATCH] Cargo.toml: profiles --- Cargo.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e742b0e..cc035f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,17 @@ path = "src/main.rs" [profile.release] +# increases perf at the cost of compile-time +codegen-units = 1 # ~4-5% perf bump +lto = true +# incremental = false +# overflow-checks = false + +[profile.profile] +inherits = "release" # for profiling debug = true -# increases perf at the cost of compile-time -codegen-units = 1 -lto = true [features] bitvec = [ "dep:bitvec" ]