First thing that happens in next_vector function is check if there is enough elements in data to do the load to simd vector, but it seems that the compiler is not able to remove assert from load function. So I have changed it to load_unchecked. The only benchmark available in this crate that is affected is:
tests::bench_nop_simd 144 88 -56 -38.89% x 1.64
but my application that goes over much bigger collection than this used in benchmarks speeds up from 14 to 12 seconds.
First thing that happens in
next_vector
function is check if there is enough elements in data to do the load to simd vector, but it seems that the compiler is not able to remove assert from load function. So I have changed it to load_unchecked. The only benchmark available in this crate that is affected is:tests::bench_nop_simd 144 88 -56 -38.89% x 1.64
but my application that goes over much bigger collection than this used in benchmarks speeds up from 14 to 12 seconds.