Commit Graph
1821 Commits
Author SHA1 Message Date
Nigel Tao eb017abd31 Have ractool parse "2k" to mean 2048 2019-08-08 11:27:25 +10:00
Nigel Tao 1944a35d4c Add more commentary to ractool's indexlocation 2019-08-08 10:48:01 +10:00
Nigel Tao 917f028f46 Default ractool to use dchunksize not cchunksize 2019-08-08 10:43:54 +10:00
Nigel Tao 737571cef8 Generate ractool's usage from its doc comment 2019-08-08 10:36:43 +10:00
Nigel Tao 4537246cf8 Remove redundant "go generate" line 2019-08-08 10:28:37 +10:00
Nigel Tao 6e3c54256c Re-organize ractool's usage as a doc comment 2019-08-08 10:21:37 +10:00
Nigel Tao 290b2256ce Add a -drange flage to cmd/ractool 2019-08-07 15:34:15 +10:00
Nigel Tao 89e5510b9a Add an example RAC file, copied from the spec 2019-08-07 15:04:18 +10:00
Nigel Tao fc40e817d6 Fix RAC spec typo 2019-08-06 23:06:53 +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 b65807d79d Have cmd/ractool support decoding 2019-08-06 17:37:30 +10:00
Nigel Tao fb0b172913 Add script/rac-random-seek-test.go 2019-08-06 17:37:03 +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 e2a41c4c42 Update changelog 2019-08-06 11:34:13 +10:00
Nigel Tao 7e513cefb5 Update a RAC spec date 2019-08-06 11:01:04 +10:00
Nigel Tao f4919ad565 Add {lang,lib}/README.md 2019-08-06 10:57:30 +10:00
Nigel Tao 642c9c5090 Reformat RAC spec example; link to ref impl 2019-08-06 10:49:37 +10:00
Nigel Tao 42ec5a029f Have raczlib check the dictionary TTag 2019-08-06 10:22:38 +10:00
Nigel Tao 2e29a25ab0 Fix MarkDown typos 2019-08-06 10:08:43 +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 4a26dacd33 Update the RAC spec re version and empty chunks 2019-08-04 22:31:58 +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 be2963bffe Fix MarkDown typo 2019-08-04 15:20:06 +10:00
Nigel Tao 69db19a26c Remove some hard-coding of cgen I/O built-in's 2019-07-27 08:29:32 +10:00
Nigel Tao a4195136bb Remove unnecessary etc__io_buffer__struct C name 2019-07-21 16:37:06 +10:00
Nigel Tao 6886500d71 Remove deprecated io_buffer reader/writer methods 2019-07-21 16:35:22 +10:00
Nigel Tao 97c6ef5f50 Add doc/note/slices-arrays-and-tables.md 2019-07-21 16:34:24 +10:00
Nigel Tao 392c8c544a Rename null_io_buffer etc to empty_io_buffer 2019-07-13 10:55:51 +10:00
Nigel Tao e477175fd2 Remove wuffs_base__global__null_io_buffer 2019-07-13 10:47:20 +10:00
Nigel Tao 2e901b6f8a Simplify some io0_etc references 2019-07-13 08:10:28 +10:00
Nigel Tao 6ad7d00a26 wuffs gen -version=0.2.0-alpha.44 2019-07-07 18:03:57 +10:00
Nigel Tao 3037f1e389 Fix empty initializer, which is not C99 2019-07-07 18:02:57 +10:00
Nigel Tao fc0d93fc66 Reject nullptr-valued io_buffer* args
name                                             old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang5                     417MB/s ± 0%   417MB/s ± 0%     ~     (p=0.841 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang5        136MB/s ± 1%   135MB/s ± 0%   -1.07%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang5        180MB/s ± 0%   177MB/s ± 0%   -1.49%  (p=0.016 n=4+5)
wuffs_gif_decode_10k_bgra/clang5                  733MB/s ± 0%   733MB/s ± 0%     ~     (p=1.000 n=5+5)
wuffs_gif_decode_10k_indexed/clang5               197MB/s ± 0%   196MB/s ± 0%   -0.43%  (p=0.032 n=5+5)
wuffs_gif_decode_20k/clang5                       245MB/s ± 0%   249MB/s ± 0%   +1.59%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang5           548MB/s ± 0%   553MB/s ± 0%   +0.97%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5            223MB/s ± 0%   226MB/s ± 0%   +1.48%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang5           226MB/s ± 0%   229MB/s ± 1%   +1.66%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang5           226MB/s ± 0%   229MB/s ± 0%   +1.51%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5           1.10GB/s ± 0%  1.11GB/s ± 0%   +0.91%  (p=0.008 n=5+5)

wuffs_gif_decode_1k_bw/gcc7                       465MB/s ± 2%   480MB/s ± 2%   +3.22%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/gcc7          142MB/s ± 1%   143MB/s ± 1%   +1.18%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc7          186MB/s ± 0%   189MB/s ± 0%   +1.64%  (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7                    634MB/s ± 0%   636MB/s ± 0%   +0.45%  (p=0.016 n=5+5)
wuffs_gif_decode_10k_indexed/gcc7                 198MB/s ± 0%   200MB/s ± 0%   +0.86%  (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc7                         243MB/s ± 0%   245MB/s ± 0%   +1.11%  (p=0.016 n=4+5)
wuffs_gif_decode_100k_artificial/gcc7             514MB/s ± 1%   516MB/s ± 1%     ~     (p=0.310 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7              210MB/s ± 0%   214MB/s ± 0%   +1.67%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.53%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc7             215MB/s ± 0%   218MB/s ± 0%   +1.54%  (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7             1.07GB/s ± 1%  1.08GB/s ± 1%     ~     (p=0.095 n=5+5)

wuffs_deflate_decode_1k_full_init/clang5          156MB/s ± 0%   140MB/s ± 0%  -10.04%  (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/clang5          192MB/s ± 0%   170MB/s ± 0%  -11.83%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang5         227MB/s ± 1%   242MB/s ± 0%   +6.61%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang5         234MB/s ± 0%   249MB/s ± 0%   +6.79%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5    282MB/s ± 0%   280MB/s ± 0%   -0.64%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5   238MB/s ± 0%   229MB/s ± 0%   -3.71%  (p=0.008 n=5+5)

wuffs_deflate_decode_1k_full_init/gcc7            157MB/s ± 0%   158MB/s ± 0%   +0.40%  (p=0.032 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc7            194MB/s ± 0%   194MB/s ± 0%     ~     (p=0.151 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc7           267MB/s ± 0%   266MB/s ± 0%     ~     (p=0.222 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc7           276MB/s ± 0%   275MB/s ± 1%     ~     (p=0.056 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7      322MB/s ± 0%   322MB/s ± 0%     ~     (p=0.548 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7     258MB/s ± 0%   258MB/s ± 0%     ~     (p=0.056 n=5+5)

wuffs_zlib_decode_10k/clang5                      212MB/s ± 0%   222MB/s ± 0%   +4.59%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/clang5                     252MB/s ± 1%   247MB/s ± 0%   -2.02%  (p=0.008 n=5+5)

wuffs_zlib_decode_10k/gcc7                        248MB/s ± 0%   253MB/s ± 0%   +2.00%  (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc7                       283MB/s ± 0%   292MB/s ± 0%   +3.17%  (p=0.008 n=5+5)
2019-07-07 17:59:11 +10:00
Nigel Tao a36bf4be4c Tweak the order of generated C's u_r and v_r vars 2019-07-07 17:43:57 +10:00
Nigel Tao 4f489d66ce Have null_io_writer mean /dev/null not nullptr 2019-07-07 17:37:23 +10:00
Nigel Tao fcec430152 Unexport wuffs_base__null_io_{reader,writer} 2019-07-07 17:31:51 +10:00