Better HN
topnewbestaskshowjobs
Log inSign up

TheServer201

27 karma · joined Mar 19, 2019 (7y ago) · 1 submissions

Submissions

comment 7y ago · link · parent

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).