Files
wuffs/release/c
Nigel Tao 6945bdc75c Fill the LZW bit buffer less often
name                             old speed     new speed     delta

wuffs_gif_decode_1k_bw/clang     292MB/s ± 1%  256MB/s ± 1%  -12.29%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/clang  143MB/s ± 0%  159MB/s ± 0%  +10.95%  (p=0.008 n=5+5)
wuffs_gif_decode_10k/clang       150MB/s ± 1%  165MB/s ± 0%  +10.24%  (p=0.008 n=5+5)
wuffs_gif_decode_100k/clang      152MB/s ± 0%  150MB/s ± 0%   -1.19%  (p=0.016 n=4+5)
wuffs_gif_decode_1000k/clang     156MB/s ± 1%  153MB/s ± 1%   -1.60%  (p=0.008 n=5+5)

wuffs_gif_decode_1k_bw/gcc       250MB/s ± 1%  330MB/s ± 0%  +31.99%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/gcc    172MB/s ± 1%  184MB/s ± 1%   +7.40%  (p=0.008 n=5+5)
wuffs_gif_decode_10k/gcc         189MB/s ± 0%  193MB/s ± 0%   +2.31%  (p=0.008 n=5+5)
wuffs_gif_decode_100k/gcc        166MB/s ± 0%  180MB/s ± 0%   +8.56%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k/gcc       171MB/s ± 0%  186MB/s ± 0%   +8.19%  (p=0.008 n=5+5)

wuffs_lzw_decode_20k/clang       168MB/s ± 3%  168MB/s ± 0%     ~     (p=0.222 n=5+5)
wuffs_lzw_decode_100k/clang      252MB/s ± 1%  239MB/s ± 0%   -4.89%  (p=0.008 n=5+5)

wuffs_lzw_decode_20k/gcc         209MB/s ± 0%  217MB/s ± 0%   +4.28%  (p=0.008 n=5+5)
wuffs_lzw_decode_100k/gcc        307MB/s ± 0%  314MB/s ± 0%   +2.27%  (p=0.008 n=5+5)
2018-10-20 07:22:23 +11:00
..
2018-07-21 09:28:48 +10:00
2018-10-13 17:02:41 +11:00

Wuffs ships as a "single file C library", also known as a "header file library".

To use Wuffs in your C/C++ project, you just need to copy one file from this directory, or otherwise integrate that one file into your build system. Typically, pick the latest version (but not the unsupported snapshot), with a filename like wuffs-vMAJOR.MINOR.h for version MAJOR.MINOR.

To use that single file as a "foo.c"-like implementation, instead of a "foo.h"-like header, #define WUFFS_IMPLEMENTATION before #include'ing or compiling it.