Commit Graph
691 Commits
Author SHA1 Message Date
Nigel Tao 2be1f63806 Remove wuffs_base__frame_config__blend 2020-01-15 10:42:36 +11:00
Nigel Tao 1a791217de Add wuffs_base__pixel_blend type 2020-01-14 09:27:04 +11:00
Nigel Tao c8e3a94200 Add base.image_decoder 2020-01-12 12:18:02 +11:00
Nigel Tao adf63e23b0 Add base.io_transformer.workbuf_len 2020-01-12 09:44:41 +11:00
Nigel Tao e9fa8d3c28 Add base.io_transformer 2020-01-11 21:47:30 +11:00
Nigel Tao 2fff7c782f Unexport some lang/builtin GenericXxx constants 2020-01-11 10:57:17 +11:00
Nigel Tao a6ee0ee391 Remove builtin.ParseFuncs "generic" argument 2020-01-11 10:37:37 +11:00
Nigel Tao e9897f6efb Honor MaxImplements 2020-01-11 10:32:56 +11:00
Nigel Tao bb1e6a5844 Remove unused check.Checker argument 2020-01-11 10:25:01 +11:00
Nigel Tao ea54c2ea11 Add syntax support for implementing interfaces 2020-01-09 15:45:29 +11:00
Nigel Tao 8f5983f151 Tweak ast.Struct field numbering 2020-01-08 22:20:17 +11:00
Nigel Tao 4323a16707 Add interface method implementations 2020-01-06 23:24:08 +11:00
Nigel Tao 9e033579c8 Add interface method signatures 2020-01-06 21:59:30 +11:00
Nigel Tao 4c9be03baa Add interface struct declarations 2020-01-06 15:16:27 +11:00
Nigel Tao 4f53f3101f Make wuffs_base__pixel_format a struct 2020-01-05 14:18:48 +11:00
Nigel Tao 0fa32bd09f Rename warnings to notes 2020-01-05 13:15:00 +11:00
Nigel Tao a5dbb9160f Add doc/note/assertions.md 2019-12-18 14:12:34 +11:00
Nigel Tao 9a5a3f636d Check that status messages start with one of @#$ 2019-12-13 20:40:22 +11:00
Nigel Tao 688e947016 Check that =? types are base.status 2019-12-05 21:06:52 +11:00
Nigel Tao cb7e9e0ce9 Add a ~mod* operator 2019-11-12 21:30:45 +11:00
Nigel Tao e1091ec182 Re-order some token.ID numbers 2019-11-12 21:19:31 +11:00
Nigel Tao 7ce58b6179 Add IntRange.TryFoo methods 2019-11-03 09:06:08 +11:00
Nigel Tao e756160433 Add axioms.md note to run go generate 2019-10-25 11:06:12 +11:00
Nigel Tao b44c823fdf Factor out lang/check/axioms.md 2019-10-18 22:41:42 +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 1c1ce9b19f Drop the unused ref and deref operators 2019-10-05 12:41:09 +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 4537246cf8 Remove redundant "go generate" line 2019-08-08 10:28:37 +10:00
Nigel Tao f4919ad565 Add {lang,lib}/README.md 2019-08-06 10:57:30 +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 d7d2d9708e Remove some obsolete limit/mark I/O methods 2019-07-06 11:43:31 +10:00
Nigel Tao b54b40a418 Use history_available in decode_huffman_fast
name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         134MB/s ± 1%  137MB/s ± 0%  +1.74%  (p=0.000 n=10+10)
wuffs_deflate_decode_1k_part_init/clang5         162MB/s ± 1%  165MB/s ± 0%  +1.79%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        220MB/s ± 0%  226MB/s ± 0%  +2.76%  (p=0.000 n=10+9)
wuffs_deflate_decode_10k_part_init/clang5        225MB/s ± 0%  232MB/s ± 1%  +2.77%  (p=0.000 n=9+9)
wuffs_deflate_decode_100k_just_one_read/clang5   270MB/s ± 0%  265MB/s ± 0%  -1.93%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/clang5  225MB/s ± 0%  223MB/s ± 0%  -1.04%  (p=0.000 n=10+9)

wuffs_deflate_decode_1k_full_init/gcc7           151MB/s ± 1%  151MB/s ± 0%    ~     (p=0.277 n=9+8)
wuffs_deflate_decode_1k_part_init/gcc7           186MB/s ± 1%  186MB/s ± 0%    ~     (p=0.696 n=10+8)
wuffs_deflate_decode_10k_full_init/gcc7          256MB/s ± 1%  253MB/s ± 1%  -0.98%  (p=0.001 n=10+9)
wuffs_deflate_decode_10k_part_init/gcc7          264MB/s ± 1%  261MB/s ± 0%  -1.11%  (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/gcc7     310MB/s ± 1%  312MB/s ± 0%  +0.43%  (p=0.013 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 0%  251MB/s ± 0%  +1.47%  (p=0.000 n=10+9)
2019-07-06 11:31:17 +10:00
Nigel Tao 9f7435c7b4 Add io_writer.history_available method
Also change copy_n_from_history to examine the buffer start instead of
the buffer mark.

name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         151MB/s ± 0%  134MB/s ± 1%  -11.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_1k_part_init/clang5         187MB/s ± 0%  162MB/s ± 1%  -13.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        241MB/s ± 0%  220MB/s ± 0%   -8.76%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        248MB/s ± 0%  225MB/s ± 0%   -9.12%  (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/clang5   288MB/s ± 0%  270MB/s ± 0%   -6.16%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/clang5  239MB/s ± 0%  225MB/s ± 0%   -5.84%  (p=0.000 n=10+10)

wuffs_deflate_decode_1k_full_init/gcc7           153MB/s ± 1%  151MB/s ± 1%   -1.13%  (p=0.000 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           187MB/s ± 1%  186MB/s ± 1%     ~     (p=0.052 n=10+10)
wuffs_deflate_decode_10k_full_init/gcc7          261MB/s ± 0%  256MB/s ± 1%   -1.83%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          269MB/s ± 1%  264MB/s ± 1%   -1.62%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     313MB/s ± 0%  310MB/s ± 1%   -0.69%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 0%  247MB/s ± 0%     ~     (p=0.089 n=10+10)
2019-07-06 11:26:05 +10:00
Nigel Tao ff1e3c9c48 Add mark/since/count_since methods
name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         149MB/s ± 0%  151MB/s ± 1%  +1.46%  (p=0.000 n=9+7)
wuffs_deflate_decode_1k_part_init/clang5         183MB/s ± 1%  188MB/s ± 2%  +2.40%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        236MB/s ± 0%  242MB/s ± 1%  +2.56%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        243MB/s ± 0%  249MB/s ± 0%  +2.36%  (p=0.000 n=9+9)
wuffs_deflate_decode_100k_just_one_read/clang5   279MB/s ± 0%  288MB/s ± 1%  +3.28%  (p=0.000 n=9+8)
wuffs_deflate_decode_100k_many_big_reads/clang5  232MB/s ± 0%  240MB/s ± 1%  +3.76%  (p=0.000 n=9+9)

wuffs_deflate_decode_1k_full_init/gcc7           152MB/s ± 1%  152MB/s ± 1%    ~     (p=0.661 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           188MB/s ± 0%  187MB/s ± 1%  -0.58%  (p=0.013 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7          260MB/s ± 0%  260MB/s ± 0%    ~     (p=0.393 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          268MB/s ± 0%  268MB/s ± 0%    ~     (p=0.971 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     312MB/s ± 1%  312MB/s ± 0%    ~     (p=0.720 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 1%  247MB/s ± 0%  -0.26%  (p=0.022 n=10+9)
2019-07-06 09:58:51 +10:00
Nigel Tao 4a85e39d87 Rename s/packed/interleaved/ for pixel formats 2019-06-16 11:44:29 +10:00
Nigel Tao 7e5332cadf Have swizzler.prepare return unsupported option 2019-06-08 22:27:55 +10:00
Nigel Tao abaab57cfd Remove image_config.background_color 2019-06-01 09:07:19 +10:00
Nigel Tao 5cdf3197bd Add frame_config.background_color 2019-05-26 16:54:37 +10:00
Nigel Tao 31a2bc918e Let GIF decode an opaque but non-black background 2019-05-21 08:53:35 +10:00
Nigel Tao 9cf5857283 Add some built-in statuses 2019-04-20 13:14:56 +10:00
Nigel Tao 7416111b9e Add FourCC constants 2019-04-20 11:44:49 +10:00
Nigel Tao 3c86337cac Fix some more -Wconversion warnings 2019-04-07 16:04:30 +10:00
Nigel Tao ef7aa0d980 Rename "!=" to "<>"; "!" now only shows impurity 2019-03-02 14:51:32 +11:00