From 5d7afdf62748c2d75e448e2d8b1dee2f2a62790c Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 1 Sep 2026 00:02:42 +0200 Subject: [PATCH 1/2] perf: improved release/bench settings performance --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5bfe44e..5c0b7ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,16 @@ keywords = ["small", "vec", "vector", "stack", "no_std"] categories = ["data-structures"] exclude = [".gitignore", "tests/", "fuzz/", "benches/", ".github/"] +[profile.bench] +lto = "fat" +codegen-units = 1 +opt-level = 3 +debug = false +strip = true + +[profile.release] +opt-level = 3 + [features] std = [] specialization = [] From afbcde21249fbdd5bf9886f6b3e55c32539a8d12 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Tue, 1 Sep 2026 02:44:05 +0200 Subject: [PATCH 2/2] perf: removed release profile overrides --- Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c0b7ea..5eb5aef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,9 +18,6 @@ opt-level = 3 debug = false strip = true -[profile.release] -opt-level = 3 - [features] std = [] specialization = []