Hacker News new | ask | show | jobs
by Veliladon 1117 days ago
In Rust using iterators is almost always better than for loops. The compiler is virtually guaranteed to optimize out bounds checks vs indexing in.