Commit Graph
100 Commits
Author SHA1 Message Date
Nigel Tao 4fc6d2af7b Avoid script/bench-go-gif variable shadowing 2019-10-20 14:20:06 +11:00
Nigel Tao b56d7c393a Fix script/bench-rust-deflate typo 2019-10-20 14:06:04 +11:00
Nigel Tao e442d4593c Add num_want_bytes to script/bench-rust-gif 2019-10-20 12:10:09 +11:00
Nigel Tao 29c23cd505 Add a warm-up rep to script/bench-rust-gif 2019-10-20 12:03:14 +11:00
Nigel Tao 135f706b3e Add script/bench-rust-deflate 2019-10-20 11:35:29 +11:00
Nigel Tao d2b0e1c203 Refine script/bench-rust-gif crates.io URL 2019-10-20 10:35:51 +11:00
Nigel Tao 078d8a6b9c Have script/bench-rust-gif print the rustc version 2019-10-20 10:30:29 +11:00
Nigel Tao 903088b537 Update doc/binary-size.md 2019-10-19 16:46:04 +11:00
Nigel Tao 7d76140429 Have "wuffs genlib" take a -ccompilers arg 2019-10-19 16:32:07 +11:00
Nigel Tao b44c823fdf Factor out lang/check/axioms.md 2019-10-18 22:41:42 +11:00
Nigel Tao c843513640 Fix doc/benchmarks.md typos 2019-10-18 08:48:05 +11:00
Nigel Tao 66348290e3 Update doc/benchmarks.md 2019-10-17 23:19:23 +11:00
Nigel Tao ffdce5ef18 Have bench-rust-gif process animated / RGBA images 2019-10-16 16:42:51 +11:00
Nigel Tao df66093473 Have bench-rust-gif process multiple images 2019-10-16 15:56:11 +11:00
Nigel Tao a24a1d427e Avoid gcc's -Werror=array-bounds for memset 2019-10-14 09:37:15 +11:00
Nigel Tao 948c6fb239 Avoid gcc's -Werror=format-truncation for snprintf 2019-10-14 09:31:15 +11:00
Nigel Tao dc1218fec0 Spell std/deflate's "literal/length" consistently 2019-10-14 09:28:28 +11:00
Nigel Tao 098cad9c95 Add links to more wire format examples 2019-10-14 09:24:04 +11:00
Nigel Tao ff7bffcffc Calculate deflate Huffman table worst case size 2019-10-14 09:21:29 +11:00
Nigel Tao 358ad7f918 Add an explicit deflate-etc.deflate.decompressed 2019-10-12 22:05:11 +11:00
Nigel Tao a21ad25bb8 Rename x T to x: T for vars 2019-10-12 21:55:13 +11:00
Nigel Tao 1520a1f345 Rename x T to x: T for fields and func args 2019-10-12 21:49:04 +11:00
Nigel Tao 5b4e3647c0 Reformat x:y as x: y 2019-10-12 21:21:39 +11:00
Nigel Tao a9ea63ff06 Rename [i:j] to [i .. j], the same as Rust 2019-10-12 21:14:18 +11:00
Nigel Tao 7872a8893b Rename while:label to while.label 2019-10-12 19:04:32 +11:00
Nigel Tao 5d29c7df61 Remove unused token.IDDollar 2019-10-12 18:45:07 +11:00
Nigel Tao d501daddc3 Rename [i..j] to [i ..= j], the same as Rust 2019-10-12 18:40:53 +11:00
Nigel Tao 18c6e5716a Fix deflate-etc.deflate.commentary.txt typo 2019-10-12 08:26:43 +11:00
Nigel Tao 69e9428c1b Fix pdst_mark for hand-written decode_huffman_fast 2019-10-06 16:58:49 +11:00
Nigel Tao df839b183f Build fix for hand-written decode_huffman_fast 2019-10-05 16:56:40 +10:00
Nigel Tao 4080840928 wuffs gen -version=0.2.0-rc.1 2019-10-05 16:46:18 +10:00
Nigel Tao b0f18dacbd Remove deprecated wuffs_base__null_etc functions 2019-10-05 16:27:53 +10:00
Nigel Tao 1c1ce9b19f Drop the unused ref and deref operators 2019-10-05 12:41:09 +10:00
Nigel Tao 97bcdded0d Remove obsolete TODO 2019-10-05 12:36:37 +10:00
Nigel Tao 745b5c41e0 Give test/c/std/gif error messages more context 2019-10-05 11:57:55 +10:00
Nigel Tao 9089d37578 Clip std/gif replicated rows to the frame rect
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17802
2019-10-05 11:54:03 +10:00
Nigel Tao aaebb17a01 Tweak how std/gif does interlace row replication 2019-10-05 11:45:14 +10:00
Nigel Tao efb18036cb Add gif-small-frame-interlaced.gif test 2019-10-05 11:40:24 +10:00
Nigel Tao 51fadc4db7 Add script/bench-history.sh 2019-09-29 17:20:14 +10:00
Nigel Tao 293a633e8a Clip std/gif output to the image rect 2019-09-28 21:47:56 +10:00
Nigel Tao 59b2ddf37f Clamp std/gif dirty rect to the image height 2019-09-28 20:27:27 +10:00
Nigel Tao 2819fb8e3f Rename some built-in func's arg from x to a 2019-09-28 14:22:48 +10:00
Nigel Tao 851b7561d9 Fix dirty rect for interlaced GIFs 2019-09-28 14:17:42 +10:00
Nigel Tao 15670546bb Let std/deflate decode a degenerate H-D table 2019-09-28 13:23:49 +10:00
Nigel Tao a9b9a82524 Have concurrent rac reading require an io.ReaderAt 2019-09-28 12:07:26 +10:00
Nigel Tao b4808596ac Add a ractool -tmpdir flag 2019-09-28 11:40:57 +10:00
Nigel Tao 18763813d5 Support zlib dictionaries 2019-09-28 10:38:30 +10:00
Nigel Tao 498e1f407d Factor out deflate.decoder.add_history 2019-09-28 10:32:12 +10:00
Nigel Tao 344efe7926 Remove deprecated io_buffer reader method 2019-09-21 17:34:50 +10:00
Nigel Tao 3fb68ac477 Rename some liveness.go types 2019-09-21 13:18:27 +10:00
Nigel Tao 1fc8910952 Remove liveness analysis' subExprFilter type 2019-09-21 13:11:53 +10:00
Nigel Tao f61798c2a8 Update liveness.go overview comment 2019-09-21 12:48:18 +10:00
Nigel Tao c93dcf0944 Rename resume.go to liveness.go 2019-09-21 12:42:55 +10:00
Nigel Tao 59b9dee61a Consistently use tt to name a *testing.T 2019-09-15 22:26:01 +10:00
Nigel Tao 8357a74a8c Fix lib/cgozstd tests with zstd version 1.3 2019-09-15 22:21:43 +10:00
Nigel Tao f98b19f783 Optimize lib/rac's findChunkContaining 2019-09-15 22:15:13 +10:00
Nigel Tao 619eddd179 Add lib/rac test for findChunkContaining 2019-09-15 21:58:18 +10:00
Nigel Tao 84669cd6ac Fix lib/cgolz4 with lz4 version 1.7 2019-09-15 20:15:55 +10:00
Nigel Tao ac7f476c25 Fix cmd/ractool doc typo 2019-09-15 19:49:34 +10:00
Nigel Tao ee4904f1f4 Update cmd/ractool performance numbers 2019-09-15 15:36:15 +10:00
Nigel Tao 7d4c042c49 Add cmd/ractool note about supported codecs 2019-09-15 14:29:44 +10:00
Nigel Tao 00b6d22333 Add a lib/raclz4 package 2019-09-15 14:13:45 +10:00
Nigel Tao 01ebdae372 Fix comment typo in racxxx examples 2019-09-15 14:03:34 +10:00
Nigel Tao 080a60f503 Add lz4 dictionary example to RAC related work 2019-09-15 13:59:59 +10:00
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