TheServer201·vor 7 Jahren·discussIn 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).
instead of
you get the 4x unroll (https://godbolt.org/z/XDyx0w).