Commit Graph
25 Commits
Author SHA1 Message Date
Nigel Tao 5cfb01a69b Fix rac.Writer with more than 510 leaf nodes 2019-04-28 19:49:06 +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 abd58b4414 Fix rac.Writer with a multi-level index 2019-04-13 08:47:04 +10:00
Nigel Tao 0e3d691048 Add rac.Writer code path for empty input 2019-04-07 13:24:42 +10:00
Nigel Tao 7e26fe8086 Rename some "cOffset" variables 2019-04-07 13:00:18 +10:00
Nigel Tao 7be27661b9 Add a rac.Writer.CPageSize field 2019-04-07 12:53:39 +10:00
Nigel Tao 369d854a34 Have rac.Writer check for too much input 2019-04-07 10:54:18 +10:00
Nigel Tao ad8b1540c3 Add CLen fields to the RAC file format 2019-04-07 10:09:51 +10:00
Nigel Tao 8cefc932c3 Add RAC examples 2019-04-07 10:09:51 +10:00
Nigel Tao 16df03f9dc Add a lib/rac package 2019-04-07 10:09:50 +10:00
Nigel Tao f59e16e337 Add a lib/zlibcut package 2019-04-06 10:16:43 +11:00
Nigel Tao 49ab667a4d Add comment separating the copyright notice 2019-03-16 14:04:14 +11:00
Nigel Tao 3680b2a11b Move NIE spec to a new doc/spec directory 2019-03-09 12:39:40 +11:00
Nigel Tao 463079dd50 Add some NIE examples 2019-02-09 08:00:05 +11:00
Nigel Tao 705a84723a For "x shift y", check that y < (x's bit-size) 2019-01-26 16:51:49 +11:00
Nigel Tao 9c631e25cf Fix lib/nie/README.md typo 2018-12-30 22:21:27 +11:00
Nigel Tao 5addc976aa Add docs for Naïve Image Formats: NIE, NII, NIA 2018-12-30 22:14:39 +11:00
Nigel Tao 20e82ba97b Use interval.IntRange instead of ast.Bounds 2018-12-26 14:02:34 +11:00
Nigel Tao 98b2aa9837 Move some Go packages from lang/foo to lib/foo 2018-08-04 09:17:08 +10:00