Closed mina86 closed 1 year ago
Thanks for the contribution! Fortunately I didn't see quite as much benchmark variation, and the presence of changes in, say, encode_slice that don't touch this logic would imply that there's a fair amount of baseline noise (which my systems have as well). I've simplified it a little in #224.
Firstly, use
[T]::chunks
rather than doing index calculation manually.Secondly, get rid of max_input_length. The function was overly complicated for no reason. After all, no matter whether engine uses padding or not, N-byte output buffer can accommodate (N/4*3) input bytes.
Encode benchmarks here are kind of all over. Some improvements and some regressions: