Rather than using generate_iter to iterate over each 2-element chunks
of output buffer, use chunks_exact_mut. This removes the need for the
custom generate_iter function and makes the code shorter.
Criterian shows improvement but to be honest I don’t trust those
results (partially because also decoding showed improvements even
though I didn’t touch it):
Rather than using generate_iter to iterate over each 2-element chunks of output buffer, use chunks_exact_mut. This removes the need for the custom generate_iter function and makes the code shorter.
Criterian shows improvement but to be honest I don’t trust those results (partially because also decoding showed improvements even though I didn’t touch it):