5 ms·
Most of Rust's guarantees are provided at compile time and have no overhead, just to be clear.
by steveklabnik 10y ago
Most of Rust's guarantees are provided at compile time and have no overhead, just to be clear.
- sidlls 10y agoYes most, but not all.
- Yoric 10y agoOut of curiosity, have you hit examples in which the runtime cost of Rust's safety was problematic – and couldn't be worked around without losing either safety or clarity?
- UtherII 10y agoThe most obvious case is bound checking. If you have a code with direct array indexing you have to use unsafe code or loose a little bit of performance.