4 ms·
I don't know. Fun tidbit about Rust: in Rust, using iterators is actually faster than normal loops because the compiler can elide (infer and remove? not entire
by swsieber 7y ago
I don't know.
Fun tidbit about Rust: in Rust, using iterators is actually faster than normal loops because the compiler can elide (infer and remove? not entirely sure how to define elude), most of the bounds checking.
I'd assume it also gets optimized out in heavily optimized interpreters, like the JVM.