4 ms·
Most of the time, you'll be accessing Rust collections through iterators, and iterators fold the bounds-check into the termination condition. There's no additi
by nostrademons 11y ago
Most of the time, you'll be accessing Rust collections through iterators, and iterators fold the bounds-check into the termination condition. There's no additional overhead here; it compiles into the exact same code that the C would.
- acconsta 11y agoIf you're using iterators, you don't have to worry about buffer overflow. But every A[i] random access needs to be bound checked.