4 ms·
In the Iterators section if you use for (idx, x) in xs.iter().enumerate() instead of for (x, idx) in xs.iter().zip(0..xs.len()) you get the 4x unroll (h
by TheServer201 8y ago
In the Iterators section if you use
for (idx, x) in xs.iter().enumerate()
instead of
for (x, idx) in xs.iter().zip(0..xs.len())
you get the 4x unroll (https://godbolt.org/z/XDyx0w https://godbolt.org/z/XDyx0w).