logoalt Hacker News

rwaksmunskilast Monday at 2:40 PM1 replyview on HN

Every Rust SIMD article should mention the .chunks_exact() auto vectorization trick by law.


Replies

ChadNauseamyesterday at 10:42 PM

Didn't know about this. Thanks!

Not related, but I often want to see the next or previous element when I'm iterating. When that happens, I always have to switch to an index-based loop. Is there a function that returns Iter<Item=(T, Option<T>)> where the second element is a lookahead?

show 1 reply