Notes:
Test files used in benchmarks:
mkdir -p src/testdata
cd src/testdata
wget https://github.com/ziglang/zig/archive/bb0f7d55e8c50e379fa9bdcb8758d89d08e0cc1f.tar.gz
wget http://corpus.canterbury.ac.nz/resources/cantrbry.tar.gz
wget http://corpus.canterbury.ac.nz/resources/large.tar.gz
wget https://www.gutenberg.org/ebooks/2600.txt.utf-8
Remove gzip extra header:
gunzip -c large.tar.gz
gzip -9n large.tar
References:
Bill Bird Video series
RFC
zlib algorithm explained
Mark Adler on stackoverflow
Faster zlib/DEFLATE
Reading bits with zero refill latency
the canterbury corpus