I read both:
- Profiles - The Cargo Book
- GitHub - johnthagen/min-sized-rust: 🦀 How to minimize Rust binary size 📦
What I don't understand is which speed gain I'm changing if I use:
[profile.release]
opt-level = "z"
instead of:
[profile.release]
opt-level = 3
-
Is it right that today
opt-level = 3
is the best setting (foropt-level
section) for runtime speed? -
If I instead use
opt-level = "z"
I'm decreasing runtime performance, right?
I'm not interested in building/compiling speed.