Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode 4 bytes between flushing (#88)
If tablelog is sufficiently small, encode 4 bytes between each flush. ``` name old time/op new time/op delta Compress/gettysburg-8 10.2µs ± 0% 10.5µs ± 1% +3.17% (p=0.008 n=5+5) Compress/digits-8 498µs ± 1% 503µs ± 2% ~ (p=0.151 n=5+5) Compress/twain-8 2.12ms ± 0% 2.12ms ± 1% ~ (p=0.730 n=4+5) Compress/low-ent-8 215µs ± 3% 214µs ± 2% ~ (p=1.000 n=5+5) Compress/superlow-ent-8 58.0µs ± 2% 58.4µs ± 1% ~ (p=0.310 n=5+5) Compress/endzerobits-8 775ns ± 2% 642ns ± 3% -17.13% (p=0.008 n=5+5) Compress/pngdata.001-8 281µs ± 1% 282µs ± 2% ~ (p=1.000 n=5+5) Compress/normcount2-8 3.04µs ± 2% 3.05µs ± 3% ~ (p=1.000 n=5+5) name old speed new speed delta Compress/gettysburg-8 152MB/s ± 0% 147MB/s ± 1% -3.07% (p=0.008 n=5+5) Compress/digits-8 201MB/s ± 1% 199MB/s ± 2% ~ (p=0.151 n=5+5) Compress/twain-8 183MB/s ± 0% 183MB/s ± 1% ~ (p=0.730 n=4+5) Compress/low-ent-8 186MB/s ± 3% 187MB/s ± 2% ~ (p=1.000 n=5+5) Compress/superlow-ent-8 181MB/s ± 2% 180MB/s ± 1% ~ (p=0.310 n=5+5) Compress/endzerobits-8 6.45MB/s ± 2% 7.78MB/s ± 3% +20.69% (p=0.008 n=5+5) Compress/pngdata.001-8 182MB/s ± 1% 182MB/s ± 2% ~ (p=1.000 n=5+5) Compress/normcount2-8 28.6MB/s ± 2% 28.5MB/s ± 3% ~ (p=1.000 n=5+5) ```
- Loading branch information