I am writing a program that calculates quite a lot, and it annoyingly slowly starts in debug mode.
My program also suffers integer overflows because I am reading data from u8 and u8 to unexpected places using type inference, and Rust prefers overflow rather than moving integers to larger types.
In release mode, disables the overflow check:
cargo run --release
How can I create a Rust executable with optimizations and runtime overflow checks?
source share