Commit Graph
43 Commits
Author SHA1 Message Date
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 425eefeb35 Replace "go get" advice with "go install"
Fixes #62
2021-12-30 22:58:12 +11:00
Nigel Tao 226c476994 Remove calls to Go's deprecated "io/ioutil" 2021-08-22 11:17:34 +10:00
Nigel Tao 2f2bbc6ab0 Rename default github.com branch s/master/main/ 2021-01-25 11:30:15 +11:00
Nigel Tao 2f78804e62 Use more inclusive language 2021-01-23 19:50:47 +11:00
Nigel Tao ad787cba11 Change ractool default codec from zlib to zstd 2019-12-11 10:21:29 +11:00
Nigel Tao bd96dad333 Update ractool's numbers for zstd-with-dictionary 2019-10-25 11:18:48 +11:00
Nigel Tao b4808596ac Add a ractool -tmpdir flag 2019-09-28 11:40:57 +10:00
Nigel Tao ac7f476c25 Fix cmd/ractool doc typo 2019-09-15 19:49:34 +10:00
Nigel Tao ee4904f1f4 Update cmd/ractool performance numbers 2019-09-15 15:36:15 +10:00
Nigel Tao 7d4c042c49 Add cmd/ractool note about supported codecs 2019-09-15 14:29:44 +10:00
Nigel Tao 00b6d22333 Add a lib/raclz4 package 2019-09-15 14:13:45 +10:00
Nigel Tao 996cb765b9 Add RAC+Zstd support to cmd/ractool 2019-09-14 12:58:42 +10:00
Nigel Tao fed2073b00 Have lib/raczlib use lib/cgozlib
As the cmd/ractool comment changes say, this is almost a 2x speed-up for
RAC+Zlib decoding on the enwik8 test file, comparable to the cgozlib
benchmark numbers:

$ go test -test.bench=. github.com/google/wuffs/lib/cgozlib
goos: linux
goarch: amd64
pkg: github.com/google/wuffs/lib/cgozlib
BenchmarkCgo-56     	    2514	    477230 ns/op
BenchmarkPure-56    	    1090	   1080853 ns/op
2019-09-07 11:35:48 +10:00
Nigel Tao 5125e51916 Add ractool example time for -singlethreaded 2019-09-07 11:29:05 +10:00
Nigel Tao 84878498ef Replace RAC's Brotli Short Codec value by LZ4
RAC still supports Brotli (as a Long Codec, not a Short Codec). It's
just no longer given a dedicated Short Codec value (and therefore less
likely to be supported out-of-the-box by cmd/ractool). Brotli occupies a
similar position to Zstandard on the speed versus size frontier. LZ4
occupies a noticably different position, faster but larger.
2019-09-07 11:19:10 +10:00
Nigel Tao 396921817d Have ractool drange syntax accept i..=j 2019-09-01 08:37:22 +10:00
Nigel Tao a97dac93e1 Change ractool drange syntax from i:j to i..j
This is more consistent with the RAC spec, and on the Windows command
line the colon might be confused with the ":" in "C:\" names.
2019-09-01 08:27:21 +10:00
Nigel Tao b8cd560594 Add a rac.Reader.SeekRange method 2019-08-31 22:19:54 +10:00
Nigel Tao 7753d147b7 Move RAC concurrent decode from program to library 2019-08-31 17:14:28 +10:00
Nigel Tao 5d6e110e1e Add ractool message about the -help cmd line arg 2019-08-25 07:17:55 +10:00
Nigel Tao a51577270b Add ractool documentation about parsing "256K" 2019-08-24 16:39:02 +10:00
Nigel Tao f75a10a230 Add "random access" definition to ractool docs 2019-08-24 15:41:35 +10:00
Nigel Tao 22c030b2e0 Have ractool decode in parallel
The "middle of the decompressed file" numbers changed because the
programs were re-run on a desktop, not a laptop.
2019-08-24 12:59:49 +10:00
Nigel Tao ca4a6c8846 Restore rac's CompressedSize to avoid Seek calls 2019-08-24 09:34:12 +10:00
Nigel Tao bed69b00c5 Add comment on installing cmd/ractool 2019-08-10 20:51:17 +10:00
Nigel Tao 594b26b1c9 Add cmd/ractool extended example 2019-08-09 20:17:33 +10:00
Nigel Tao 6e7c88f42f Add a -resources flag to cmd/ractool 2019-08-09 18:59:10 +10:00
Nigel Tao 08798669eb Remove unnecessary rac CompressedSize field 2019-08-09 15:31:03 +10:00
Nigel Tao 6461695fb1 Add ractool comment that "1M" means 1 mebibyte 2019-08-08 16:57:14 +10:00
Nigel Tao 31eb600ad3 Remove unused raczlib constants 2019-08-08 15:41:00 +10:00
Nigel Tao 4d2f575f2a Refactor raczlib.Writer as rac part + zlib part 2019-08-08 15:38:21 +10:00
Nigel Tao 635c3c8fe9 Rename foo.raczlib to foo.rac 2019-08-08 11:31:30 +10:00
Nigel Tao eb017abd31 Have ractool parse "2k" to mean 2048 2019-08-08 11:27:25 +10:00
Nigel Tao 1944a35d4c Add more commentary to ractool's indexlocation 2019-08-08 10:48:01 +10:00
Nigel Tao 917f028f46 Default ractool to use dchunksize not cchunksize 2019-08-08 10:43:54 +10:00
Nigel Tao 737571cef8 Generate ractool's usage from its doc comment 2019-08-08 10:36:43 +10:00
Nigel Tao 6e3c54256c Re-organize ractool's usage as a doc comment 2019-08-08 10:21:37 +10:00
Nigel Tao 290b2256ce Add a -drange flage to cmd/ractool 2019-08-07 15:34:15 +10:00
Nigel Tao b65807d79d Have cmd/ractool support decoding 2019-08-06 17:37:30 +10:00
Nigel Tao d3c33aa232 Add cmd/ractool and lib/raczlib 2019-06-16 11:36:29 +10:00