optimize bin size, while preserving speed

This commit is contained in:
2025-11-14 09:15:14 -07:00
parent cec9c6e237
commit ef4429a38f

View File

@@ -8,3 +8,16 @@ edition = "2024"
# evalexpr ={ path = "../evalexpr"} # evalexpr ={ path = "../evalexpr"}
evalexpr = { git="https://github.com/Rushmore75/evalexpr.git" } evalexpr = { git="https://github.com/Rushmore75/evalexpr.git" }
ratatui = "0.29.0" 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"