Nigel Tao
eed1af7bee
base: rename history_retain_length
...
It was renamed to dst_history_retain_length.
It also was removed from image_decoders and token_decoders. It only
applies to io_transformers, as retaining history applies to the
destination (not source) IO buffer.
Also adjust example/bzcat and example/zcat to apply the history retain
length to the dst (not src) buffer.
2023-12-17 12:26:08 +11:00
Nigel Tao
dc269f3f54
std/bzip2: fix get_quirk(QUIRK_IGNORE_CHECKSUM)
2023-11-19 19:25:39 +11:00
Nigel Tao
82ea1985b4
base: add optional_u63 type
2023-11-19 12:02:24 +11:00
Patrick Georgi
f563f32f82
Add SPDX identifier to license headers
...
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.
In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao
74a6ea2fcd
all: relicense from Apache2 to dual Apache2/MIT
...
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).
If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.
The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c
Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao
5fb82e7d0a
std: add compact_retaining, history_retain_length
2023-10-05 13:24:44 +11:00
Nigel Tao
4dfd70928b
std: add "get_quirk(key: u32) u64"
2023-07-16 12:04:09 +10:00
Nigel Tao
6e84987d33
std: change set_quirk_enabled to set_quirk
2023-04-14 21:42:15 +10:00
Nigel Tao
ea3fbc37f5
lang: change const array to const roarray
2023-04-10 16:06:10 +10:00
Nigel Tao
49fa501f0d
lang/parse: struct private data now needs a "+"
2023-04-09 15:45:06 +10:00
Nigel Tao
f5eb38d76e
wuffsfmt: indent with 4 spaces (not a tab)
2023-04-09 15:28:07 +10:00
Nigel Tao
9c03b8c71d
wuffsfmt: double-indents hanging lines
2023-04-09 15:22:25 +10:00
Nigel Tao
f01f0859f0
std/*io_transformer*: add "#truncated input"
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 58.5MB/s ± 0% 59.9MB/s ± 0% +2.50% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/clang11 45.7MB/s ± 0% 50.5MB/s ± 0% +10.66% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 56.2MB/s ± 0% 61.9MB/s ± 0% +10.01% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 46.5MB/s ± 0% 50.4MB/s ± 0% +8.41% (p=0.016 n=4+5)
wuffs_deflate_decode_1k_full_init/clang11 195MB/s ± 0% 191MB/s ± 0% -1.71% (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/clang11 224MB/s ± 0% 225MB/s ± 0% +0.87% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang11 421MB/s ± 0% 401MB/s ± 0% -4.59% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang11 432MB/s ± 0% 413MB/s ± 0% -4.49% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang11 542MB/s ± 0% 518MB/s ± 0% -4.43% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang11 338MB/s ± 0% 325MB/s ± 0% -3.81% (p=0.008 n=5+5)
wuffs_deflate_decode_1k_full_init/gcc10 181MB/s ± 0% 185MB/s ± 0% +1.76% (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc10 209MB/s ± 0% 212MB/s ± 0% +1.79% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc10 410MB/s ± 0% 407MB/s ± 0% -0.93% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc10 421MB/s ± 0% 418MB/s ± 0% -0.87% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc10 533MB/s ± 0% 533MB/s ± 0% ~ (p=0.548 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc10 336MB/s ± 0% 334MB/s ± 1% -0.67% (p=0.008 n=5+5)
wuffs_gzip_decode_10k/clang11 401MB/s ± 0% 398MB/s ± 0% -0.77% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/clang11 505MB/s ± 0% 503MB/s ± 0% -0.46% (p=0.008 n=5+5)
wuffs_gzip_decode_10k/gcc10 403MB/s ± 0% 410MB/s ± 0% +1.90% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/gcc10 522MB/s ± 0% 523MB/s ± 0% +0.10% (p=0.032 n=5+5)
wuffs_zlib_decode_10k/clang11 418MB/s ± 0% 417MB/s ± 1% ~ (p=0.310 n=5+5)
wuffs_zlib_decode_100k/clang11 530MB/s ± 0% 529MB/s ± 0% ~ (p=0.421 n=5+5)
wuffs_zlib_decode_10k/gcc10 428MB/s ± 0% 434MB/s ± 0% +1.50% (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc10 551MB/s ± 0% 551MB/s ± 0% ~ (p=0.690 n=5+5)
Fixes #96
2023-01-31 23:09:37 +11:00
Nigel Tao
45a79923e6
Tighten std/bzip2 Huffman leaf node bit packing
2022-06-10 14:31:53 +10:00
Nigel Tao
67aa63297c
Rename std/bzip2 num_nodes variable
2022-06-10 14:06:27 +10:00
Nigel Tao
8c33dd503b
Tighten std/bzip2 huffman_trees array size
2022-06-10 14:02:17 +10:00
Nigel Tao
9256fe5e54
Have std/bzip2 check the number of sections
...
Updates #79
2022-06-08 16:41:46 +10:00
Nigel Tao
f55274aaa7
Fix -Werror=conversion in decode_bzip2.wuffs
2022-05-24 13:58:48 +10:00
Nigel Tao
e6793fc501
Have std/bzip2 support QUIRK_IGNORE_CHECKSUM
2022-05-24 12:31:43 +10:00
Nigel Tao
09102fb1e8
Tweak std/bzip2 decoder.flush_fast applicability
2022-05-24 12:25:47 +10:00
Nigel Tao
6a3e43f495
Tweak std/bzip2 flush_* basic blocks
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 65.2MB/s ± 0% 65.2MB/s ± 0% ~ (p=0.056 n=5+5)
wuffs_bzip2_decode_100k/clang11 52.4MB/s ± 0% 51.5MB/s ± 0% -1.67% (p=0.016 n=5+4)
wuffs_bzip2_decode_10k/gcc10 60.6MB/s ± 0% 61.7MB/s ± 0% +1.81% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 49.2MB/s ± 0% 49.6MB/s ± 0% +0.86% (p=0.008 n=5+5)
2022-05-24 12:01:30 +10:00
Nigel Tao
bed155bd6f
Optimize std/bzip2 flush_repeat_count checks
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 60.5MB/s ± 0% 65.2MB/s ± 0% +7.85% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/clang11 45.7MB/s ± 1% 52.4MB/s ± 0% +14.68% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 58.5MB/s ± 0% 60.6MB/s ± 0% +3.67% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 46.3MB/s ± 0% 49.2MB/s ± 0% +6.31% (p=0.008 n=5+5)
2022-05-24 11:56:23 +10:00
Nigel Tao
66f194f7e0
Introduce std/bzip2 decoder.flush_fast method
...
Compared to the recent commit 623290ef "Cache std/bzip2 Huffman tree
lookup":
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 60.5MB/s ± 0% 60.5MB/s ± 0% ~ (p=1.000 n=5+5)
wuffs_bzip2_decode_100k/clang11 46.7MB/s ± 1% 45.7MB/s ± 1% -2.05% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 58.7MB/s ± 0% 58.5MB/s ± 0% ~ (p=0.222 n=5+5)
wuffs_bzip2_decode_100k/gcc10 46.9MB/s ± 0% 46.3MB/s ± 0% -1.46% (p=0.008 n=5+5)
2022-05-24 11:50:48 +10:00
Nigel Tao
29eec43287
Factor out std/bzip2/decode_flush_slow.wuffs
2022-05-24 11:27:09 +10:00
Nigel Tao
ae1e075401
Rename std/bzip2 decode_block_* functions
2022-05-24 11:24:57 +10:00
Nigel Tao
fc0c5e465b
Rename std/bzip2/decode_block_*.wuffs
2022-05-24 11:24:15 +10:00
Nigel Tao
99b8c1cb9e
Add std/bzip2 comment re QUIRK_IGNORE_CHECKSUM
2022-05-23 16:21:51 +10:00
Nigel Tao
623290ef87
Cache std/bzip2 Huffman tree lookup
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 46.5MB/s ± 0% 60.5MB/s ± 0% +30.16% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/clang11 39.4MB/s ± 1% 46.7MB/s ± 1% +18.43% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 43.8MB/s ± 0% 58.7MB/s ± 0% +34.07% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 35.9MB/s ± 0% 46.9MB/s ± 0% +30.92% (p=0.008 n=5+5)
2022-05-23 15:51:51 +10:00
Nigel Tao
fdad12d59f
Have std/bzip2 read 4 (not 1) bytes per inner loop
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 42.9MB/s ± 0% 46.5MB/s ± 0% +8.38% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/clang11 36.9MB/s ± 0% 39.4MB/s ± 1% +6.75% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 36.5MB/s ± 0% 43.8MB/s ± 0% +19.73% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 30.8MB/s ± 0% 35.9MB/s ± 0% +16.37% (p=0.008 n=5+5)
2022-05-23 15:22:31 +10:00
Nigel Tao
94a2c704d4
Factor out std/bzip2/decode_block_slow.wuffs
2022-05-23 13:54:50 +10:00
Nigel Tao
27e9b81588
Optimize bzip2 invert_bwt letter counting
...
name old speed new speed delta
wuffs_bzip2_decode_10k/clang11 42.2MB/s ± 0% 42.9MB/s ± 0% +1.63% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/clang11 36.2MB/s ± 1% 36.9MB/s ± 0% +2.07% (p=0.008 n=5+5)
wuffs_bzip2_decode_10k/gcc10 35.3MB/s ± 0% 36.5MB/s ± 0% +3.62% (p=0.008 n=5+5)
wuffs_bzip2_decode_100k/gcc10 29.5MB/s ± 0% 30.8MB/s ± 0% +4.59% (p=0.008 n=5+5)
2022-05-23 13:36:55 +10:00
Nigel Tao
2422997ee5
Tweak std/bzip2's "inverse of T" description
2022-05-17 00:10:46 +10:00
Nigel Tao
68b76a8a56
Implement std/bzip2
2022-05-16 23:35:32 +10:00
Nigel Tao
fc635d76f7
Add std/bzip2/README.md note about bzip 1
2022-05-13 10:37:36 +10:00
Nigel Tao
ce8d08598d
Add std/bzip2 package
...
This is just a placeholder decoder implementation.
2022-05-12 23:52:12 +10:00
Nigel Tao
b5f12153db
Add std/bzip2/README.md
2022-05-12 22:15:31 +10:00