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
be1f605108
Run gofmt
2022-08-21 21:41:06 +10:00
Nigel Tao
bb028ae764
Update tests for artificial/* filename rename
2021-11-18 08:10:12 +11:00
Nigel Tao
226c476994
Remove calls to Go's deprecated "io/ioutil"
2021-08-22 11:17:34 +10:00
Nigel Tao
59b9dee61a
Consistently use tt to name a *testing.T
2019-09-15 22:26:01 +10:00
Nigel Tao
155e2ff426
Have flatecut emit Stored blocks if shorter
2019-05-25 10:52:22 +10:00
Nigel Tao
0cc17985db
Let flatecut accept a degenerate Huffman tree
2019-05-21 11:08:39 +10:00
Nigel Tao
a79eb83f65
Have flatecut.Cut take an optional io.Writer arg
2019-04-20 10:35:58 +10:00
Nigel Tao
b54f3b4df3
Have flatecut use a 64-bit bit buffer, not 32
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 919µs ± 0% 867µs ± 0% -5.70% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.34ms ± 1% 2.28ms ± 0% -2.46% (p=0.008 n=5+5)
2019-04-20 09:59:52 +10:00
Nigel Tao
fe3767ad6c
Have flatecut's huffman.decode load more bits
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.03ms ± 0% 0.92ms ± 0% -10.44% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.44ms ± 0% 2.34ms ± 1% -4.19% (p=0.008 n=5+5)
2019-04-20 09:47:05 +10:00
Nigel Tao
4250c3a7af
Tweak flatecut's huffman.decode
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.05ms ± 0% 1.03ms ± 0% -2.32% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.48ms ± 0% 2.44ms ± 0% -1.44% (p=0.008 n=5+5)
2019-04-20 09:39:17 +10:00
Nigel Tao
89d7aa7261
Don't rewind flatecut's bitstream so often
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.27ms ± 0% 1.05ms ± 0% -17.52% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.72ms ± 1% 2.48ms ± 0% -9.06% (p=0.008 n=5+5)
2019-04-20 09:25:19 +10:00
Nigel Tao
76a63e751e
Add a look-up table to flatecut
...
name old time/op new time/op delta
pkg:github.com/google/wuffs/lib/flatecut goos:linux goarch:amd64
Cut-56 1.50ms ± 1% 1.27ms ± 0% -14.96% (p=0.008 n=5+5)
pkg:github.com/google/wuffs/lib/zlibcut goos:linux goarch:amd64
Cut-56 2.94ms ± 0% 2.72ms ± 1% -7.39% (p=0.008 n=5+5)
2019-04-20 08:38:34 +10:00
Nigel Tao
185b7da6c6
Add a test for flatecut's Huffman decoder
2019-04-20 08:34:26 +10:00
Nigel Tao
f59e16e337
Add a lib/zlibcut package
2019-04-06 10:16:43 +11:00