Commit Graph
1909 Commits
Author SHA1 Message Date
Nigel Tao ecbfe8dbb3 Increase lib/cgozstd buffer size from 4K to 64K 2019-09-15 13:39:43 +10:00
Nigel Tao a108ec9742 Tweak lib/cgozstd errCode style 2019-09-15 13:39:26 +10:00
Nigel Tao 5e957c1161 Add a lib/cgolz4 package 2019-09-15 13:38:40 +10:00
Nigel Tao 8e0b5aab3b Fix cgozstd_test.go comment typo 2019-09-15 13:05:15 +10:00
Nigel Tao cde91019d9 Remove the rac.ReaderContext type 2019-09-15 10:16:59 +10:00
Nigel Tao 65e7b2b6c9 wuffs gen -version=0.2.0-alpha.47 2019-09-14 13:05:36 +10:00
Nigel Tao ea3dbc5f2d Restore deprecated io_buffer reader method 2019-09-14 13:04:45 +10:00
Nigel Tao 996cb765b9 Add RAC+Zstd support to cmd/ractool 2019-09-14 12:58:42 +10:00
Nigel Tao badbcc2be8 Tweak raczlib to be consistent with raczstd 2019-09-14 12:57:46 +10:00
Nigel Tao 3a3d9a3ca8 Add a lib/raczstd package 2019-09-14 12:57:15 +10:00
Nigel Tao 74614a2921 Fix calls to the deprecated null_io_buffer 2019-09-14 12:06:27 +10:00
Nigel Tao 23ef9395c8 wuffs gen -version=0.2.0-alpha.46 2019-09-14 11:47:04 +10:00
Nigel Tao b4191d48a1 Tweak cgozlib to be consistent with cgozstd 2019-09-14 11:41:36 +10:00
Nigel Tao 3adcfc4d99 Add a lib/cgozstd package 2019-09-14 11:41:13 +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 ca9015bd2d Have std/gif replicate interlaced rows 2019-09-14 08:35:50 +10:00
Nigel Tao 050bca9120 Have example/gifplayer show partial results 2019-09-14 08:33:07 +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 5125e51916 Add ractool example time for -singlethreaded 2019-09-07 11:29:05 +10:00
Nigel Tao 0f89b06207 Rename RAC's Zstandard Short Codec value
The bits in the byte no longer need to be independent. We can enumerate
0, 1, 2, etc instead of 1<<0, 1<<1, 1<<2, etc.
2019-09-07 11:23:52 +10:00
Nigel Tao 84878498ef Replace RAC's Brotli Short Codec value by LZ4
RAC still supports Brotli (as a Long Codec, not a Short Codec). It's
just no longer given a dedicated Short Codec value (and therefore less
likely to be supported out-of-the-box by cmd/ractool). Brotli occupies a
similar position to Zstandard on the speed versus size frontier. LZ4
occupies a noticably different position, faster but larger.
2019-09-07 11:19:10 +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 e7c7e7bcf9 Have rac low-level test use a different fake Codec 2019-09-07 08:17:07 +10:00
Nigel Tao 7955ae50d1 Add cgozlib stubs to build when CGO_ENABLED=0 2019-09-07 08:10:16 +10:00
Nigel Tao 7012330cd7 Fix a RAC spec typo in its dictionary example 2019-09-01 22:49:34 +10:00
Nigel Tao a93d5a8ea7 Add a lib/cgozlib package 2019-09-01 22:48:56 +10:00
Nigel Tao 1fa39758cf Add a rac.CodecWriter.CanCut method 2019-09-01 15:37:21 +10:00
Nigel Tao 0a31851d85 Tweak how rac.concReader.Read moves to next work 2019-09-01 15:19:09 +10:00
Nigel Tao cb40bbc26c Simplify rac.concReader.nextWork 2019-09-01 15:11:04 +10:00
Nigel Tao c3f45a7aed Limit rac concurrent reader buffer sizes 2019-09-01 15:09:56 +10:00
Nigel Tao 396921817d Have ractool drange syntax accept i..=j 2019-09-01 08:37:22 +10:00
Nigel Tao a97dac93e1 Change ractool drange syntax from i:j to i..j
This is more consistent with the RAC spec, and on the Windows command
line the colon might be confused with the ":" in "C:\" names.
2019-09-01 08:27:21 +10:00
Nigel Tao b8cd560594 Add a rac.Reader.SeekRange method 2019-08-31 22:19:54 +10:00
Nigel Tao 449bbaf68e wuffs gen -version=0.2.0-alpha.45 2019-08-31 17:15:27 +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 f379f7f905 Fix parsing 0 length GIF metadata 2019-08-31 08:20:18 +10:00
Nigel Tao e75fe256b2 Update the RAC Related Work document 2019-08-25 21:48:13 +10:00
Nigel Tao d48ca528e6 Spin out a RAC Related Work document 2019-08-25 15:53:14 +10:00
Nigel Tao 5d6e110e1e Add ractool message about the -help cmd line arg 2019-08-25 07:17:55 +10:00
Nigel Tao a51577270b Add ractool documentation about parsing "256K" 2019-08-24 16:39:02 +10:00
Nigel Tao f75a10a230 Add "random access" definition to ractool docs 2019-08-24 15:41:35 +10:00
Nigel Tao 874f5a1712 Add test/data/artificial/gif-no-frames.gif 2019-08-24 15:03:45 +10:00
Nigel Tao 22c030b2e0 Have ractool decode in parallel
The "middle of the decompressed file" numbers changed because the
programs were re-run on a desktop, not a laptop.
2019-08-24 12:59:49 +10:00
Nigel Tao ca4a6c8846 Restore rac's CompressedSize to avoid Seek calls 2019-08-24 09:34:12 +10:00
Nigel Tao f53bee37ba Update rac-random-seek-test.go for API changes 2019-08-24 07:56:53 +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