Commit Graph
40 Commits
Author SHA1 Message Date
Nigel Tao 788479dd64 Run "gofmt -w ." for new "//go:build" lines 2021-08-22 10:53:06 +10:00
Nigel Tao 2f2bbc6ab0 Rename default github.com branch s/master/main/ 2021-01-25 11:30:15 +11:00
Nigel Tao 8ac2af0122 Change raczlib's dictionary wire format
This makes raczlib and raczstd use the same format: RAC's "common
dictionary format".

This is a breaking change to any existing RAC+Zlib files that use shared
dictionaries. RAC+Zlib is still an experimental (unstable) file format.
2019-10-24 10:47:48 +11:00
Nigel Tao a9b9a82524 Have concurrent rac reading require an io.ReaderAt 2019-09-28 12:07:26 +10:00
Nigel Tao 59b9dee61a Consistently use tt to name a *testing.T 2019-09-15 22:26:01 +10:00
Nigel Tao 01ebdae372 Fix comment typo in racxxx examples 2019-09-15 14:03:34 +10:00
Nigel Tao cde91019d9 Remove the rac.ReaderContext type 2019-09-15 10:16:59 +10:00
Nigel Tao badbcc2be8 Tweak raczlib to be consistent with raczstd 2019-09-14 12:57:46 +10:00
Nigel Tao 99197b3f09 Add a lib/compression package 2019-09-14 11:01:08 +10:00
Nigel Tao eac65a0084 Fix lib/raczlib build for CGO_ENABLED=0 2019-09-14 10:26:15 +10:00
Nigel Tao 8d408c7c2c Add a Close method to rac.Codec{Reader,Writer} 2019-09-10 09:19:01 +10:00
Nigel Tao fed2073b00 Have lib/raczlib use lib/cgozlib
As the cmd/ractool comment changes say, this is almost a 2x speed-up for
RAC+Zlib decoding on the enwik8 test file, comparable to the cgozlib
benchmark numbers:

$ go test -test.bench=. github.com/google/wuffs/lib/cgozlib
goos: linux
goarch: amd64
pkg: github.com/google/wuffs/lib/cgozlib
BenchmarkCgo-56     	    2514	    477230 ns/op
BenchmarkPure-56    	    1090	   1080853 ns/op
2019-09-07 11:35:48 +10:00
Nigel Tao 4006157f9f Re-do RAC codec values, from 8 bits to 56 bits 2019-09-07 10:25:33 +10:00
Nigel Tao 1fa39758cf Add a rac.CodecWriter.CanCut method 2019-09-01 15:37:21 +10:00
Nigel Tao 7753d147b7 Move RAC concurrent decode from program to library 2019-08-31 17:14:28 +10:00
Nigel Tao e0d9749f4e Add a rac.Reader.Close method 2019-08-31 10:43:18 +10:00
Nigel Tao ca4a6c8846 Restore rac's CompressedSize to avoid Seek calls 2019-08-24 09:34:12 +10:00
Nigel Tao 9394364a47 Have rac favor io.ReaderAt over io.ReadSeeker 2019-08-24 07:56:34 +10:00
Nigel Tao 62211056f8 Fix "if false" debugging left in rac's readAt 2019-08-24 07:04:11 +10:00
Nigel Tao 08798669eb Remove unnecessary rac CompressedSize field 2019-08-09 15:31:03 +10:00
Nigel Tao 706e7a2474 Encode RAC implicit zeroes when CChunkSize set 2019-08-09 15:10:43 +10:00
Nigel Tao ac4fed2275 Let rac.Writer support shared resources 2019-08-09 13:33:09 +10:00
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 fe2b4e236d Make the rac codec per-chunk, not per-chunkWriter 2019-08-08 14:39:18 +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 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 93870d0d1d Prepare to generalize a raczlib.Reader 2019-08-06 11:40:58 +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 d3c33aa232 Add cmd/ractool and lib/raczlib 2019-06-16 11:36:29 +10:00