-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
huff0: Improve 4X decompression speed 5-10% (#437)
Improve huffman 4X decompression speed for tablelog <= 8. ``` λ benchcmp before.txt after.txt benchmark old ns/op new ns/op delta BenchmarkDecompress4XNoTable/digits-32 167490 158439 -5.40% BenchmarkDecompress4XNoTable/gettysburg-32 2762 2782 +0.72% BenchmarkDecompress4XNoTable/twain-32 578974 584448 +0.95% BenchmarkDecompress4XNoTable/low-ent.10k-32 57714 54112 -6.24% BenchmarkDecompress4XNoTable/superlow-ent-10k-32 15440 14349 -7.07% BenchmarkDecompress4XNoTable/case1-32 232 215 -7.28% BenchmarkDecompress4XNoTable/case2-32 181 172 -4.97% BenchmarkDecompress4XNoTable/case3-32 187 178 -5.28% BenchmarkDecompress4XNoTable/pngdata.001-32 78498 79716 +1.55% BenchmarkDecompress4XNoTable/normcount2-32 299 270 -9.60% BenchmarkDecompress4XTable/digits-32 167728 158709 -5.38% BenchmarkDecompress4XTable/gettysburg-32 3993 3956 -0.93% BenchmarkDecompress4XTable/twain-32 586985 584482 -0.43% BenchmarkDecompress4XTable/low-ent.10k-32 58317 54652 -6.28% BenchmarkDecompress4XTable/superlow-ent-10k-32 15895 14903 -6.24% BenchmarkDecompress4XTable/case1-32 2030 1996 -1.67% BenchmarkDecompress4XTable/case2-32 1986 1956 -1.51% BenchmarkDecompress4XTable/case3-32 2004 1980 -1.20% BenchmarkDecompress4XTable/pngdata.001-32 81922 81627 -0.36% BenchmarkDecompress4XTable/normcount2-32 1351 1339 -0.89% ```
- Loading branch information
Showing
2 changed files
with
236 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.