Hacker News new | ask | show | jobs
by winrid 1301 days ago
IIRC the Rust in Action book claimed iterators usually omit bounds checks, but if you manually index into the array then it's more likely the bounds check won't be optimized out.