Nigel Tao
|
dd861416ff
|
Allow calling pure functions after seeing an error
Updates #20
|
2019-02-24 11:13:51 +11:00 |
|
Nigel Tao
|
ab7d6de318
|
Let Wuffs compile with MSVC (Microsoft Visual C++)
|
2019-02-16 09:02:33 +11:00 |
|
Nigel Tao
|
4f76d2f893
|
Rename some check_wuffs_version status messages
|
2019-02-09 14:56:27 +11:00 |
|
Nigel Tao
|
9518af5a95
|
Separate the coro_susp_point from the coro stack
|
2019-02-09 11:03:50 +11:00 |
|
Nigel Tao
|
ecccafab09
|
Add check for interleaved coroutines
It's not an optimization per se, but it seems to help:
name old speed new speed delta
wuffs_deflate_decode_1k/clang5 138MB/s ± 1% 150MB/s ± 1% +8.96% (p=0.008 n=5+5)
wuffs_deflate_decode_10k/clang5 223MB/s ± 0% 243MB/s ± 0% +9.25% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang5 263MB/s ± 2% 289MB/s ± 0% +10.19% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang5 220MB/s ± 1% 243MB/s ± 0% +10.42% (p=0.008 n=5+5)
wuffs_deflate_decode_1k/gcc7 158MB/s ± 0% 157MB/s ± 0% ~ (p=0.056 n=5+5)
wuffs_deflate_decode_10k/gcc7 268MB/s ± 0% 268MB/s ± 0% ~ (p=1.000 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc7 312MB/s ± 0% 320MB/s ± 0% +2.62% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc7 254MB/s ± 0% 253MB/s ± 0% -0.48% (p=0.016 n=5+5)
|
2019-01-26 15:33:43 +11:00 |
|
Nigel Tao
|
1ea32b3745
|
Remove the !? effect, leaving only ! and !??
|
2018-12-29 13:36:38 +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
|
19ddd4450f
|
Make gif's decoder.restart_frame ! not !?
|
2018-12-28 16:38:19 +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
|
c2826e87e3
|
Factor lzw's decode into read and write halves
name old speed new speed delta
wuffs_lzw_decode_20k/clang 203MB/s ± 3% 240MB/s ± 1% +17.93% (p=0.000 n=49+5)
wuffs_lzw_decode_100k/clang 334MB/s ± 4% 413MB/s ± 0% +23.75% (p=0.000 n=50+5)
wuffs_lzw_decode_20k/gcc 235MB/s ± 2% 254MB/s ± 2% +8.40% (p=0.000 n=45+5)
wuffs_lzw_decode_100k/gcc 395MB/s ± 2% 455MB/s ± 2% +15.06% (p=0.000 n=45+5)
wuffs_gif_decode_1k_bw/clang 229MB/s ± 1% 240MB/s ± 0% +4.51% (p=0.000 n=49+5)
wuffs_gif_decode_1k_color/clang 120MB/s ± 1% 134MB/s ± 1% +11.44% (p=0.000 n=46+5)
wuffs_gif_decode_10k_bgra/clang 557MB/s ± 1% 649MB/s ± 0% +16.56% (p=0.000 n=47+5)
wuffs_gif_decode_10k_indexed/clang 149MB/s ± 1% 174MB/s ± 1% +17.11% (p=0.000 n=48+5)
wuffs_gif_decode_100k_artificial/clang 459MB/s ± 1% 514MB/s ± 1% +11.95% (p=0.000 n=47+5)
wuffs_gif_decode_100k_realistic/clang 175MB/s ± 1% 204MB/s ± 0% +16.80% (p=0.000 n=47+5)
wuffs_gif_decode_1000k/clang 178MB/s ± 1% 207MB/s ± 0% +16.21% (p=0.000 n=46+5)
wuffs_gif_decode_anim_screencap/clang 961MB/s ± 1% 1060MB/s ± 1% +10.35% (p=0.000 n=46+5)
wuffs_gif_decode_1k_bw/gcc 244MB/s ± 1% 261MB/s ± 0% +6.86% (p=0.000 n=47+5)
wuffs_gif_decode_1k_color/gcc 133MB/s ± 1% 145MB/s ± 0% +9.44% (p=0.000 n=48+5)
wuffs_gif_decode_10k_bgra/gcc 543MB/s ± 2% 593MB/s ± 1% +9.22% (p=0.000 n=49+5)
wuffs_gif_decode_10k_indexed/gcc 166MB/s ± 1% 185MB/s ± 0% +11.55% (p=0.000 n=47+5)
wuffs_gif_decode_100k_artificial/gcc 464MB/s ± 1% 512MB/s ± 0% +10.51% (p=0.000 n=47+5)
wuffs_gif_decode_100k_realistic/gcc 190MB/s ± 1% 211MB/s ± 0% +11.05% (p=0.000 n=47+5)
wuffs_gif_decode_1000k/gcc 193MB/s ± 1% 215MB/s ± 0% +11.54% (p=0.000 n=44+5)
wuffs_gif_decode_anim_screencap/gcc 1.00GB/s ± 1% 1.07GB/s ± 0% +7.76% (p=0.000 n=45+5)
|
2018-12-26 11:08:37 +11:00 |
|
Nigel Tao
|
87a4ef25d2
|
Eliminate obsolete coroSuspPoint check
|
2018-11-24 21:25:28 +11:00 |
|
Nigel Tao
|
248436c231
|
Mark gif methods as !? not !??
|
2018-11-24 21:22:25 +11:00 |
|
Nigel Tao
|
ec0fd9649d
|
Don't skip derived I/O vars for !? methods
|
2018-11-24 17:52:04 +11:00 |
|
Nigel Tao
|
312cdc8a0a
|
Mark deflate's init_huff as merely !? not !??
|
2018-11-24 16:41:45 +11:00 |
|
Nigel Tao
|
88236105c9
|
Have cgen functions return empty_struct, not void
|
2018-11-24 16:00:46 +11:00 |
|
Nigel Tao
|
0482fadf41
|
Generate implicit wuffs_base__status for !? funcs
|
2018-11-24 15:41:56 +11:00 |
|
Nigel Tao
|
2434f0dee5
|
Remove some redundant cgen funk fields
|
2018-11-24 15:25:31 +11:00 |
|
Nigel Tao
|
fcffb9676e
|
Rename func header/footer as prologue/epilogue
|
2018-11-24 15:15:25 +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
|
e2d1f8e0c2
|
Generate const annotations for pure methods
|
2018-10-28 17:30:48 +11:00 |
|
Nigel Tao
|
26a448450e
|
Move C++ method impls inside struct definitions
|
2018-10-06 10:06:07 +10:00 |
|
Nigel Tao
|
9367cd800b
|
Remove the (pointer-typed) private_impl.status
|
2018-08-19 11:32:31 +10:00 |
|
Nigel Tao
|
b840c80040
|
Make the status type a const char*, not a struct
|
2018-08-12 16:05:14 +10:00 |
|
Nigel Tao
|
2a32a86a6c
|
Make the status type a struct, not an int32_t
|
2018-08-11 13:27:29 +10:00 |
|
Nigel Tao
|
9c0b2d2f5c
|
Rename ioptr_etc cgen variables
|
2018-08-11 08:32:49 +10:00 |
|
Nigel Tao
|
fd43e777bc
|
Have check_wuffs_version return a status code
|
2018-08-05 22:29:54 +10:00 |
|
Nigel Tao
|
f2ee78aa2a
|
Remove short_read_src cgen code path
|
2018-08-04 09:45:35 +10:00 |
|
Nigel Tao
|
5cca9471ec
|
Have cgen look for !?? methods not ? methods
|
2018-07-29 14:01:57 +10:00 |
|
Nigel Tao
|
0a47966e72
|
Introduce finer-grained effects
|
2018-07-29 13:40:49 +10:00 |
|
Nigel Tao
|
9919d78245
|
Change func out-type from struct to bare type
|
2018-07-29 10:02:06 +10:00 |
|
Nigel Tao
|
d73353024c
|
Make clang-format place func names at line start
|
2018-07-14 10:33:06 +10:00 |
|
Nigel Tao
|
8a6e177701
|
Add WUFFS_CONFIG__STATIC_FUNCTIONS
|
2018-07-14 10:16:10 +10:00 |
|
Nigel Tao
|
ccb78f5db7
|
Rename ast.Node methods from Foo to AsFoo
|
2018-07-01 20:41:21 +10:00 |
|
Nigel Tao
|
30cfaa5db7
|
Add C++ convenience methods
|
2018-06-30 13:02:16 +10:00 |
|
Nigel Tao
|
33e99792eb
|
Qualify cgen'ed "func foo.bar" with the pkgName
|
2018-06-30 09:01:03 +10:00 |
|
Nigel Tao
|
156cea5a70
|
Add a std/gif work_buffer_size method
|
2018-06-11 08:52:53 +10:00 |
|
Nigel Tao
|
50a955317a
|
Remove the WUFFS_FOO__STATUS_ETC names
|
2018-06-10 22:05:06 +10:00 |
|
Nigel Tao
|
d770e879ab
|
Remove the wuffs_foo__status types
|
2018-06-10 21:40:43 +10:00 |
|
Nigel Tao
|
1211e16e3c
|
Add more error codes for check_wuffs_version
|
2018-05-29 14:33:15 +10:00 |
|
Nigel Tao
|
00203e564f
|
Let ? methods return OK even without suspending
|
2018-05-27 19:09:58 +10:00 |
|
Nigel Tao
|
54519570be
|
Move IGNORE_etc_UNUSED_VARIABLE close to decl
|
2018-05-17 10:27:20 +10:00 |
|
Nigel Tao
|
f10ff8c896
|
Have std/gif pass through an intermediary
|
2018-05-13 15:50:51 +10:00 |
|
Nigel Tao
|
e8eeee371a
|
Raise built-in ident capacity from 96 to 768
|
2018-05-05 09:23:10 +10:00 |
|
Nigel Tao
|
d7d5db8f74
|
Generate some function separator comments
|
2018-05-02 15:54:25 +10:00 |
|
Nigel Tao
|
3d1bb5e2a9
|
Generate temporary io_bind variables
|
2018-04-28 12:49:49 +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 |
|