Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use [T]::copy_within in EncoderWriter i/o [T]::rotate_left
For now not doing the same in DecoderReader because benchmarks indicate a performance regression and I’d like to take a closer look at it. With EncoderWriter benchmark results are as follows: encode_reuse_buf_stream: 3 21.01 ns +3.3135% Regression p = 0.00 50 58.20 ns +1.8117% Regression p = 0.00 100 71.93 ns -7.4010% Improvement p = 0.00 500 237.47 ns -0.3117% Within noise p = 0.02 3072 1.283 µs -2.5103% Improvement p = 0.00 3145728 1.335 ms +0.3749% Within noise p = 0.03 10485760 4.442 ms +0.8301% Within noise p = 0.00 31457280 14.135 ms -0.0776% No change p = 0.50
- Loading branch information