Commit Graph
10 Commits
Author SHA1 Message Date
Nigel Tao 155e2ff426 Have flatecut emit Stored blocks if shorter 2019-05-25 10:52:22 +10:00
Nigel Tao 0cc17985db Let flatecut accept a degenerate Huffman tree 2019-05-21 11:08:39 +10:00
Nigel Tao a79eb83f65 Have flatecut.Cut take an optional io.Writer arg 2019-04-20 10:35:58 +10:00
Nigel Tao b54f3b4df3 Have flatecut use a 64-bit bit buffer, not 32
name    old time/op  new time/op  delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56   919µs ± 0%   867µs ± 0%  -5.70%  (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56  2.34ms ± 1%  2.28ms ± 0%  -2.46%  (p=0.008 n=5+5)
2019-04-20 09:59:52 +10:00
Nigel Tao fe3767ad6c Have flatecut's huffman.decode load more bits
name    old time/op  new time/op  delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56  1.03ms ± 0%  0.92ms ± 0%  -10.44%  (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56  2.44ms ± 0%  2.34ms ± 1%   -4.19%  (p=0.008 n=5+5)
2019-04-20 09:47:05 +10:00
Nigel Tao 4250c3a7af Tweak flatecut's huffman.decode
name    old time/op  new time/op  delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56  1.05ms ± 0%  1.03ms ± 0%  -2.32%  (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56  2.48ms ± 0%  2.44ms ± 0%  -1.44%  (p=0.008 n=5+5)
2019-04-20 09:39:17 +10:00
Nigel Tao 89d7aa7261 Don't rewind flatecut's bitstream so often
name    old time/op  new time/op  delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56  1.27ms ± 0%  1.05ms ± 0%  -17.52%  (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56  2.72ms ± 1%  2.48ms ± 0%   -9.06%  (p=0.008 n=5+5)
2019-04-20 09:25:19 +10:00
Nigel Tao 76a63e751e Add a look-up table to flatecut
name    old time/op  new time/op  delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56  1.50ms ± 1%  1.27ms ± 0%  -14.96%  (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56  2.94ms ± 0%  2.72ms ± 1%   -7.39%  (p=0.008 n=5+5)
2019-04-20 08:38:34 +10:00
Nigel Tao 185b7da6c6 Add a test for flatecut's Huffman decoder 2019-04-20 08:34:26 +10:00
Nigel Tao f59e16e337 Add a lib/zlibcut package 2019-04-06 10:16:43 +11:00