News for hackers. Stuff that matters.
Re:Vectorization: Introduction by galangalalgol on Thursday June 01, 2023 @09:28PM (#36159742)
In rust I've noticed using iterators instead of for loops tends to trigger auto vectorization more often.
Re:Vectorization: Introduction by Veliladon on Thursday June 01, 2023 @11:43PM (#36160714)
In Rust using iterators is almost always better than for loops. The compiler is virtually guaranteed to optimize out bounds checks vs indexing in.