From ef4429a38fd496a953eb7b084093487d369a0e9e Mon Sep 17 00:00:00 2001 From: Rushmore75 Date: Fri, 14 Nov 2025 09:15:14 -0700 Subject: [PATCH] optimize bin size, while preserving speed --- Cargo.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 17c2ae3..4651a7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,16 @@ edition = "2024" # evalexpr ={ path = "../evalexpr"} evalexpr = { git="https://github.com/Rushmore75/evalexpr.git" } ratatui = "0.29.0" + +[profile.release] +# Down 1.4M -> 1.1M +lto = true +# Down 1.1M -> 944K +strip = true +# z 944K -> 820K +# 3 -> 944K +opt-level = 3 # 3 was a couple million ns faster than z when benched +# 1 944K -> 920K +codegen-units = 1 +# 920K -> 868K +panic = "abort" \ No newline at end of file