From: Carl Woffenden Date: Tue, 27 Aug 2019 13:51:14 +0000 (+0200) Subject: Added reasoning X-Git-Tag: v1.4.4~1^2~71^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6712a644faac10aa27b606f8f365fa76a2b36f0e;p=thirdparty%2Fzstd.git Added reasoning --- diff --git a/contrib/declib/README.md b/contrib/declib/README.md index 866497c3c..fbe7ac786 100644 --- a/contrib/declib/README.md +++ b/contrib/declib/README.md @@ -7,6 +7,9 @@ Create `zstddeclib.c` from the Zstd source using: cd zstd/contrib/declib ./combine.sh -r ../../lib -r ../../lib/common -r ../../lib/decompress -o zstddeclib.c zstddeclib-in.c ``` -Then add the resulting file to your project (see the [example files](examples)). +Then add the resulting file to your project (see the [example files](examples)). `build.sh` will run the above script then compile and test the resulting library. -`build.sh` will run the above script then compile and test the resulting library. +Why +--- + +Because all it now takes to support decompressing Zstd is the addition of a single file, two if using the header, with no configuration or further build steps. The library is small, adding, for example, 25kB to an Emscripten compiled WebAssembly project. Native implementations add a little more, 40-70kB depending on the compiler and platform.