I have a question about performance over safety in Rust.
I’m a professional C++ video game dev. In game developpement we car about panic and backtrace only in debug or ‘debug with optmisation’, when we ship we want fastest code possible.
The point is with Rust when a use array like [i32; 4] even in release compilation with cargo I still have a panic when accessing out of bound. So somewhere there is a check if the bound is in correct range, a ‘if’ branch so…
Is there a way to say Rust don’t check i know what i’m doing and if it’s crap then let’s be crap and remove the branch of the test?