Nigel Tao
|
c4b8a6a4cc
|
Don't use designated initializers
Some C/C++ compilers, such as MSVC, don't always support them. They're
also not supported by GCC's "g++ -std=c++11 -Wpedantic".
|
2019-03-09 10:08:00 +11:00 |
|
Nigel Tao
|
ab7d6de318
|
Let Wuffs compile with MSVC (Microsoft Visual C++)
|
2019-02-16 09:02:33 +11:00 |
|
Nigel Tao
|
250257e3c0
|
Spin out some cgen fields to a private_data struct
|
2019-02-09 19:49:09 +11:00 |
|
Nigel Tao
|
9518af5a95
|
Separate the coro_susp_point from the coro stack
|
2019-02-09 11:03:50 +11:00 |
|
Nigel Tao
|
70958ea914
|
Avoid "defined but not used" for consts
|
2019-02-02 13:34:50 +11:00 |
|
Nigel Tao
|
a80962d502
|
Make deflate's decode_huffman_fast ! not !?
name old speed new speed delta
wuffs_deflate_decode_1k/clang 138MB/s ± 0% 139MB/s ± 0% +0.75% (p=0.008 n=5+5)
wuffs_deflate_decode_10k/clang 233MB/s ± 0% 226MB/s ± 0% -2.83% (p=0.008 n=5+5)
wuffs_deflate_decode_100k/clang 273MB/s ± 0% 259MB/s ± 1% -5.20% (p=0.008 n=5+5)
wuffs_deflate_decode_1k/gcc 158MB/s ± 1% 157MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_deflate_decode_10k/gcc 266MB/s ± 1% 261MB/s ± 0% -1.95% (p=0.008 n=5+5)
wuffs_deflate_decode_100k/gcc 314MB/s ± 0% 316MB/s ± 0% +0.48% (p=0.032 n=5+5)
|
2018-12-28 18:59:30 +11:00 |
|
Nigel Tao
|
23cd084b53
|
Zero-initialize implicit io_buffer locals
|
2018-12-27 12:22:32 +11:00 |
|
Nigel Tao
|
e55ce7d798
|
Clean up cgen's writeResumeSuspend
|
2018-12-27 12:20:33 +11:00 |
|
Nigel Tao
|
983cebd893
|
Have cgen zero-initialize all local variables
|
2018-12-27 11:54:33 +11:00 |
|
Nigel Tao
|
d552f88738
|
Make Iterate contain Assign's not Var's
|
2018-12-27 10:35:27 +11:00 |
|
Nigel Tao
|
eb108af98a
|
Remove hard-coded cgen of lzw's read_from method
|
2018-12-26 11:59:03 +11:00 |
|
Nigel Tao
|
33a4557d98
|
Collect GIF's LZW data into larger batches
name old speed new speed delta
wuffs_gif_decode_1k_bw/clang 224MB/s ± 1% 227MB/s ± 0% +0.98% (p=0.000 n=10+9)
wuffs_gif_decode_1k_color/clang 116MB/s ± 1% 118MB/s ± 1% +2.26% (p=0.000 n=10+10)
wuffs_gif_decode_10k_bgra/clang 541MB/s ± 0% 568MB/s ± 1% +4.97% (p=0.000 n=9+10)
wuffs_gif_decode_10k_indexed/clang 144MB/s ± 0% 152MB/s ± 0% +5.61% (p=0.000 n=9+10)
wuffs_gif_decode_100k_artificial/clang 438MB/s ± 1% 454MB/s ± 1% +3.56% (p=0.000 n=9+10)
wuffs_gif_decode_100k_realistic/clang 171MB/s ± 0% 179MB/s ± 0% +4.64% (p=0.000 n=8+10)
wuffs_gif_decode_1000k/clang 174MB/s ± 0% 180MB/s ± 0% +3.90% (p=0.000 n=9+10)
wuffs_gif_decode_anim_screencap/clang 897MB/s ± 1% 943MB/s ± 0% +5.10% (p=0.000 n=9+9)
wuffs_gif_decode_1k_bw/gcc 250MB/s ± 1% 241MB/s ± 1% -3.26% (p=0.000 n=10+10)
wuffs_gif_decode_1k_color/gcc 132MB/s ± 1% 130MB/s ± 1% -2.15% (p=0.000 n=10+10)
wuffs_gif_decode_10k_bgra/gcc 534MB/s ± 1% 535MB/s ± 1% ~ (p=0.211 n=9+10)
wuffs_gif_decode_10k_indexed/gcc 162MB/s ± 1% 163MB/s ± 0% ~ (p=0.105 n=10+10)
wuffs_gif_decode_100k_artificial/gcc 460MB/s ± 0% 456MB/s ± 0% -0.80% (p=0.000 n=10+10)
wuffs_gif_decode_100k_realistic/gcc 186MB/s ± 0% 186MB/s ± 1% -0.33% (p=0.001 n=9+10)
wuffs_gif_decode_1000k/gcc 189MB/s ± 1% 188MB/s ± 1% ~ (p=0.053 n=9+10)
wuffs_gif_decode_anim_screencap/gcc 981MB/s ± 1% 971MB/s ± 1% -0.95% (p=0.000 n=10+10)
|
2018-12-15 14:10:10 +11:00 |
|
Nigel Tao
|
9741eada02
|
Replace "= try foo" with "=? foo"
|
2018-12-01 13:11:47 +11:00 |
|
Nigel Tao
|
248436c231
|
Mark gif methods as !? not !??
|
2018-11-24 21:22:25 +11:00 |
|
Nigel Tao
|
7bdbab9e08
|
Remove obsolete gen.visitVars function
|
2018-11-10 17:24:11 +11:00 |
|
Nigel Tao
|
6ebe99ced9
|
Don't suspend/resume unnecessary local variables
name old speed new speed delta
wuffs_adler32_10k/clang 2.42GB/s ± 1% 2.41GB/s ± 0% -0.43% (p=0.000 n=49+10)
wuffs_adler32_100k/clang 2.42GB/s ± 1% 2.41GB/s ± 1% -0.56% (p=0.000 n=48+10)
wuffs_adler32_10k/gcc 3.22GB/s ± 1% 3.21GB/s ± 0% -0.35% (p=0.000 n=48+10)
wuffs_adler32_100k/gcc 3.22GB/s ± 0% 3.20GB/s ± 0% -0.69% (p=0.000 n=48+10)
wuffs_crc32_ieee_10k/clang 2.86GB/s ± 0% 2.85GB/s ± 0% -0.44% (p=0.000 n=48+9)
wuffs_crc32_ieee_100k/clang 2.88GB/s ± 1% 2.87GB/s ± 0% -0.45% (p=0.000 n=49+10)
wuffs_crc32_ieee_10k/gcc 3.35GB/s ± 1% 3.35GB/s ± 0% ~ (p=0.094 n=48+9)
wuffs_crc32_ieee_100k/gcc 3.38GB/s ± 1% 3.38GB/s ± 1% ~ (p=0.371 n=45+10)
wuffs_deflate_decode_1k/clang 147MB/s ± 1% 137MB/s ± 1% -6.84% (p=0.000 n=50+10)
wuffs_deflate_decode_10k/clang 241MB/s ± 0% 227MB/s ± 0% -5.74% (p=0.000 n=48+9)
wuffs_deflate_decode_100k/clang 269MB/s ± 0% 258MB/s ± 0% -3.92% (p=0.000 n=49+9)
wuffs_deflate_decode_1k/gcc 159MB/s ± 0% 161MB/s ± 1% +1.51% (p=0.000 n=49+10)
wuffs_deflate_decode_10k/gcc 269MB/s ± 0% 276MB/s ± 0% +2.51% (p=0.000 n=49+10)
wuffs_deflate_decode_100k/gcc 320MB/s ± 0% 316MB/s ± 0% -1.29% (p=0.000 n=46+10)
wuffs_gif_decode_1k_bw/clang 252MB/s ± 1% 264MB/s ± 0% +4.56% (p=0.000 n=49+10)
wuffs_gif_decode_1k_color/clang 127MB/s ± 1% 122MB/s ± 1% -3.84% (p=0.000 n=47+10)
wuffs_gif_decode_10k/clang 152MB/s ± 0% 148MB/s ± 0% -3.12% (p=0.000 n=47+9)
wuffs_gif_decode_100k_artificial/clang 431MB/s ± 0% 443MB/s ± 1% +2.95% (p=0.000 n=42+10)
wuffs_gif_decode_100k_realistic/clang 170MB/s ± 0% 173MB/s ± 0% +1.39% (p=0.000 n=48+10)
wuffs_gif_decode_1000k/clang 172MB/s ± 0% 174MB/s ± 0% +1.27% (p=0.000 n=48+10)
wuffs_gif_decode_anim_screencap/clang 917MB/s ± 1% 949MB/s ± 0% +3.44% (p=0.000 n=47+9)
wuffs_gif_decode_1k_bw/gcc 265MB/s ± 1% 278MB/s ± 2% +4.87% (p=0.000 n=48+10)
wuffs_gif_decode_1k_color/gcc 135MB/s ± 0% 140MB/s ± 2% +4.10% (p=0.000 n=46+10)
wuffs_gif_decode_10k/gcc 157MB/s ± 1% 166MB/s ± 0% +5.84% (p=0.000 n=48+8)
wuffs_gif_decode_100k_artificial/gcc 446MB/s ± 1% 459MB/s ± 1% +2.89% (p=0.000 n=48+10)
wuffs_gif_decode_100k_realistic/gcc 176MB/s ± 0% 186MB/s ± 2% +5.82% (p=0.000 n=46+10)
wuffs_gif_decode_1000k/gcc 178MB/s ± 0% 189MB/s ± 1% +6.11% (p=0.000 n=45+9)
wuffs_gif_decode_anim_screencap/gcc 962MB/s ± 1% 989MB/s ± 1% +2.83% (p=0.000 n=48+9)
wuffs_gzip_decode_10k/clang 212MB/s ± 0% 208MB/s ± 0% -1.67% (p=0.000 n=47+10)
wuffs_gzip_decode_100k/clang 240MB/s ± 0% 236MB/s ± 0% -1.68% (p=0.000 n=47+10)
wuffs_gzip_decode_10k/gcc 252MB/s ± 0% 246MB/s ± 0% -2.41% (p=0.000 n=47+10)
wuffs_gzip_decode_100k/gcc 290MB/s ± 0% 288MB/s ± 0% -0.70% (p=0.000 n=44+10)
wuffs_lzw_decode_20k/clang 202MB/s ± 0% 202MB/s ± 0% ~ (p=0.069 n=48+8)
wuffs_lzw_decode_100k/clang 332MB/s ± 1% 334MB/s ± 1% +0.54% (p=0.000 n=46+10)
wuffs_lzw_decode_20k/gcc 215MB/s ± 1% 223MB/s ± 0% +3.60% (p=0.000 n=49+9)
wuffs_lzw_decode_100k/gcc 361MB/s ± 1% 368MB/s ± 0% +2.05% (p=0.000 n=47+10)
wuffs_zlib_decode_10k/clang 218MB/s ± 0% 206MB/s ± 0% -5.53% (p=0.000 n=48+9)
wuffs_zlib_decode_100k/clang 244MB/s ± 0% 234MB/s ± 0% -4.14% (p=0.000 n=45+10)
wuffs_zlib_decode_10k/gcc 252MB/s ± 0% 252MB/s ± 0% ~ (p=0.960 n=49+10)
wuffs_zlib_decode_100k/gcc 290MB/s ± 0% 292MB/s ± 0% +0.52% (p=0.000 n=49+10)
|
2018-11-10 17:04:40 +11:00 |
|
Nigel Tao
|
808d5c1e6c
|
Re-order switch cases for consistency
|
2018-11-10 11:25:51 +11:00 |
|
Nigel Tao
|
6fed251b40
|
Split an io_buffer's fields into data and meta
|
2018-09-15 08:45:50 +10:00 |
|
Nigel Tao
|
4e7ef5fb88
|
Rename I/O bounds fields to mark and limit
|
2018-08-18 09:38:02 +10:00 |
|
Nigel Tao
|
9c0b2d2f5c
|
Rename ioptr_etc cgen variables
|
2018-08-11 08:32:49 +10:00 |
|
Nigel Tao
|
ca06083f8a
|
Rename the implicit in variable to args
|
2018-07-29 10:26:22 +10:00 |
|
Nigel Tao
|
ccb78f5db7
|
Rename ast.Node methods from Foo to AsFoo
|
2018-07-01 20:41:21 +10:00 |
|
Nigel Tao
|
eda326726a
|
Allow table base.u8 as a type
|
2018-05-18 10:31:24 +10:00 |
|
Nigel Tao
|
54519570be
|
Move IGNORE_etc_UNUSED_VARIABLE close to decl
|
2018-05-17 10:27:20 +10:00 |
|
Nigel Tao
|
3489c68849
|
Simplify write{Load,Save}DerivedVar
|
2018-05-17 10:24:20 +10:00 |
|
Nigel Tao
|
7452ec8035
|
Rename b_rptr_foo as ioptr_foo
|
2018-05-17 09:59:04 +10:00 |
|
Nigel Tao
|
f10ff8c896
|
Have std/gif pass through an intermediary
|
2018-05-13 15:50:51 +10:00 |
|
Nigel Tao
|
ed1a8b4057
|
Update std/gif's pass-through uncompressed_wi
|
2018-05-13 13:09:58 +10:00 |
|
Nigel Tao
|
31cdcd7048
|
Derive a wuffs_base__io_buffer typed local var
|
2018-05-13 11:12:36 +10:00 |
|
Nigel Tao
|
56c27ed3c3
|
Always zero-init pointery-typed vars on resume
|
2018-05-13 10:57:15 +10:00 |
|
Nigel Tao
|
2d3b3b1dae
|
Add an io_writer var to gif's decoder.decode_id
|
2018-05-13 10:40:44 +10:00 |
|
Nigel Tao
|
3debf31424
|
Simplify synchronizing io_buffer pointers
|
2018-05-02 20:51:48 +10:00 |
|
Nigel Tao
|
128e6c06bb
|
Remove some obsolete limit-related code
|
2018-05-02 19:53:19 +10:00 |
|
Nigel Tao
|
54d126db74
|
Add a (temporary) limit consistency check
|
2018-05-02 16:56:59 +10:00 |
|
Nigel Tao
|
00bd9adb7d
|
Set implicit io_{reader,writer} bounds
|
2018-05-02 16:35:19 +10:00 |
|
Nigel Tao
|
6e22d68442
|
Use wuffs_base__io_{reader,writer} bounds
|
2018-04-28 13:16:22 +10:00 |
|
Nigel Tao
|
395890c287
|
Add an io_bind keyword
|
2018-04-28 11:45:33 +10:00 |
|
Nigel Tao
|
a2cf739e52
|
Make an io_{reader,writer}'s buffer private
|
2018-04-27 21:02:48 +10:00 |
|
Nigel Tao
|
eeebd58d7b
|
Remove token ID/Key distinction, part 11 of N
|
2018-04-15 17:57:10 +10:00 |
|
Nigel Tao
|
f95239f6e0
|
Rename u32, io_reader, etc to base.u32, etc
|
2018-04-12 21:49:17 +10:00 |
|
Nigel Tao
|
2b91e7861c
|
Prepare array and slice tokens
|
2018-04-05 21:51:38 +10:00 |
|
Nigel Tao
|
97aab37462
|
Rename buf1, reader1, etc to io_buffer, io_reader
Also remove the unused Buf1, Buf2 and Usize tokens.
|
2018-04-05 20:49:48 +10:00 |
|
Nigel Tao
|
eb05139fcd
|
Add comment on the performance of resuming locals
|
2018-02-22 11:30:21 +11:00 |
|
Nigel Tao
|
5a927d6905
|
Roll back 'unconditionally resume local vars'
See the previous commit for the rationale.
|
2018-02-22 11:23:58 +11:00 |
|
Nigel Tao
|
2b6b0acb4f
|
Unconditionally resume local vars
This commit will immediately be followed by a rollback, but it is
committed anyway so that we can refer to these numbers in the git log.
name old speed new speed delta
wuffs_deflate_decode_1k/clang 145MB/s ± 1% 141MB/s ± 1% -2.28% (p=0.000 n=19+19)
wuffs_deflate_decode_10k/clang 222MB/s ± 0% 202MB/s ± 1% -9.39% (p=0.000 n=16+18)
wuffs_deflate_decode_100k/clang 256MB/s ± 0% 237MB/s ± 1% -7.64% (p=0.000 n=20+20)
wuffs_deflate_decode_1k/gcc 157MB/s ± 2% 158MB/s ± 1% +0.73% (p=0.001 n=20+19)
wuffs_deflate_decode_10k/gcc 247MB/s ± 1% 251MB/s ± 0% +1.72% (p=0.000 n=19+18)
wuffs_deflate_decode_100k/gcc 289MB/s ± 0% 286MB/s ± 0% -0.86% (p=0.000 n=17+18)
wuffs_lzw_decode_20k/clang 121MB/s ± 1% 122MB/s ± 1% +1.04% (p=0.000 n=17+19)
wuffs_lzw_decode_100k/clang 163MB/s ± 1% 164MB/s ± 1% +0.33% (p=0.010 n=19+18)
wuffs_gif_decode_1k/clang 348MB/s ± 1% 361MB/s ± 2% +3.62% (p=0.000 n=20+20)
wuffs_gif_decode_10k/clang 132MB/s ± 1% 130MB/s ± 1% -1.49% (p=0.000 n=20+19)
wuffs_gif_decode_100k/clang 114MB/s ± 0% 116MB/s ± 1% +1.24% (p=0.000 n=19+20)
wuffs_gif_decode_1000k/clang 117MB/s ± 0% 118MB/s ± 1% +1.16% (p=0.000 n=17+20)
wuffs_lzw_decode_20k/gcc 153MB/s ± 1% 162MB/s ± 1% +6.05% (p=0.000 n=18+19)
wuffs_lzw_decode_100k/gcc 216MB/s ± 1% 228MB/s ± 0% +5.29% (p=0.000 n=20+19)
wuffs_gif_decode_1k/gcc 444MB/s ± 1% 388MB/s ± 1% -12.62% (p=0.000 n=19+18)
wuffs_gif_decode_10k/gcc 148MB/s ± 0% 126MB/s ± 0% -14.50% (p=0.000 n=19+19)
wuffs_gif_decode_100k/gcc 137MB/s ± 0% 114MB/s ± 1% -16.69% (p=0.000 n=19+18)
wuffs_gif_decode_1000k/gcc 139MB/s ± 1% 117MB/s ± 0% -16.02% (p=0.000 n=20+17)
wuffs_adler32_10k/clang 2.44GB/s ± 0% 2.44GB/s ± 1% ~ (p=0.258 n=18+17)
wuffs_adler32_100k/clang 2.45GB/s ± 0% 2.44GB/s ± 0% -0.11% (p=0.005 n=17+16)
wuffs_zlib_decode_10k/clang 204MB/s ± 0% 188MB/s ± 0% -7.82% (p=0.000 n=17+18)
wuffs_zlib_decode_100k/clang 232MB/s ± 0% 218MB/s ± 0% -5.90% (p=0.000 n=19+17)
wuffs_adler32_10k/gcc 3.22GB/s ± 1% 3.25GB/s ± 0% +1.01% (p=0.000 n=19+20)
wuffs_adler32_100k/gcc 3.22GB/s ± 0% 3.25GB/s ± 0% +0.95% (p=0.000 n=16+18)
wuffs_zlib_decode_10k/gcc 229MB/s ± 1% 233MB/s ± 0% +1.71% (p=0.000 n=18+19)
wuffs_zlib_decode_100k/gcc 262MB/s ± 0% 265MB/s ± 0% +1.04% (p=0.000 n=17+18)
|
2018-02-22 11:18:16 +11:00 |
|
Nigel Tao
|
11ad47af86
|
Zero-initialize bool-typed coro local variables
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6470
|
2018-02-21 16:00:25 +11:00 |
|
Nigel Tao
|
8b4ba30a36
|
Rename some ast.Expr methods
|
2017-12-29 12:58:01 +11:00 |
|
Nigel Tao
|
ed03c5943a
|
Add pkg to ast Func, Struct and TypeExpr nodes
|
2017-12-29 12:08:17 +11:00 |
|
Nigel Tao
|
7601fb45ce
|
Rename String(*token.Map) to Str(*token.Map)
|
2017-12-01 11:22:08 +11:00 |
|
Nigel Tao
|
3c708dfe59
|
Rename PUFFS to WUFFS, part 7 of N
|
2017-11-30 18:02:59 +11:00 |
|