Commit Graph
212 Commits
Author SHA1 Message Date
Nigel Tao d070c6ad47 Merge some small lib/raczlib/*.go files 2019-08-08 15:44:01 +10:00
Nigel Tao 31eb600ad3 Remove unused raczlib constants 2019-08-08 15:41:00 +10:00
Nigel Tao 4d2f575f2a Refactor raczlib.Writer as rac part + zlib part 2019-08-08 15:38:21 +10:00
Nigel Tao 7d71bc590b Add rac.Reader.CodecReaders doc comment 2019-08-08 14:46:15 +10:00
Nigel Tao fe2b4e236d Make the rac codec per-chunk, not per-chunkWriter 2019-08-08 14:39:18 +10:00
Nigel Tao 2f1d6c77c9 Remove obsolete rac.ReaderContext comment 2019-08-08 14:21:21 +10:00
Nigel Tao 3c8ecf0627 Rename lib/rac's writer.go to chunk_writer.go 2019-08-08 14:16:32 +10:00
Nigel Tao a932033d6b Improve error msg for no matching rac.CodecReader 2019-08-08 12:37:07 +10:00
Nigel Tao 05267a2edc Rename rac.Writer as rac.ChunkWriter 2019-08-08 12:20:40 +10:00
Nigel Tao b7b4e308ba Refactor rac io.EOF / io.ErrUnexpectedEOF checks 2019-08-08 12:13:06 +10:00
Nigel Tao f4abc0ffe4 Invalidate raczlib cache if re-using its memory 2019-08-08 12:10:40 +10:00
Nigel Tao cdf49196b1 Add a rac.CodecReader abstraction 2019-08-08 12:09:25 +10:00
Nigel Tao 6b40d3ede1 Fix rac.Reader seeking inside the implicit zeroes 2019-08-06 20:20:51 +10:00
Nigel Tao db407e37c6 Fix rac IndexLocationAtEnd for deep index trees 2019-08-06 18:38:50 +10:00
Nigel Tao c5c32d62b6 Refactor raczlib.Reader as rac part + zlib part 2019-08-06 15:28:54 +10:00
Nigel Tao a8082bf301 Rename rac.Reader to rac.Parser 2019-08-06 15:25:44 +10:00
Nigel Tao 5c16eac8bb Rename lib/rac's reader.go to parser.go 2019-08-06 13:28:47 +10:00
Nigel Tao 93870d0d1d Prepare to generalize a raczlib.Reader 2019-08-06 11:40:58 +10:00
Nigel Tao f4919ad565 Add {lang,lib}/README.md 2019-08-06 10:57:30 +10:00
Nigel Tao 42ec5a029f Have raczlib check the dictionary TTag 2019-08-06 10:22:38 +10:00
Nigel Tao df8ecfbb0a Add examples to the RAC spec 2019-08-05 22:50:32 +10:00
Nigel Tao c1974521da Add a test for concatenated RAC files 2019-08-05 22:18:51 +10:00
Nigel Tao 0eb23c67b6 Have raczlib.Reader support shared dictionaries 2019-08-05 18:09:05 +10:00
Nigel Tao 566e8e0424 Add a raczlib.Reader 2019-08-05 15:42:56 +10:00
Nigel Tao 774744d2f3 Fix package rac's examples for godoc convention 2019-08-05 12:53:15 +10:00
Nigel Tao 89c2bf655c Remove TODO comment about implementing raczlib 2019-08-05 12:40:43 +10:00
Nigel Tao 4c41a5c240 Add comment about rac.Reader using io.ReaderAt 2019-08-05 09:02:41 +10:00
Nigel Tao 63f3ac927f Differentiate primary data in a rac test 2019-08-04 22:17:32 +10:00
Nigel Tao 0c430ed507 Rename the internal rac.node type 2019-08-04 22:14:24 +10:00
Nigel Tao 877078a28b Rename lib/rac test file 2019-08-04 22:12:28 +10:00
Nigel Tao 861ae95f8c Add a rac.Reader 2019-08-04 22:07:43 +10:00
Nigel Tao e292a22ccb Fix rac.Writer's TTag for branch nodes 2019-08-04 16:39:29 +10:00
Nigel Tao 40d08bbee1 Add lib/zlibcut/example_test.go 2019-07-06 07:48:30 +10:00
Nigel Tao d3c33aa232 Add cmd/ractool and lib/raczlib 2019-06-16 11:36:29 +10:00
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 52261e7528 Fix rac.MaxSize comment typo 2019-05-21 08:53:35 +10:00
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