From d525ae91e64209267fdaedc17a2542f61b638849 Mon Sep 17 00:00:00 2001 From: Henrik Edin Date: Wed, 5 Dec 2018 14:11:38 -0500 Subject: SERVER-38168 Vendor Zstandard 1.3.7 to third_party Added a Zstd based message compressor. --- .../zstandard-1.3.7/zstd/examples/README.md | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/third_party/zstandard-1.3.7/zstd/examples/README.md (limited to 'src/third_party/zstandard-1.3.7/zstd/examples/README.md') diff --git a/src/third_party/zstandard-1.3.7/zstd/examples/README.md b/src/third_party/zstandard-1.3.7/zstd/examples/README.md new file mode 100644 index 00000000000..eba50c9997d --- /dev/null +++ b/src/third_party/zstandard-1.3.7/zstd/examples/README.md @@ -0,0 +1,40 @@ +Zstandard library : usage examples +================================== + +- [Simple compression](simple_compression.c) : + Compress a single file. + Introduces usage of : `ZSTD_compress()` + +- [Simple decompression](simple_decompression.c) : + Decompress a single file. + Only compatible with simple compression. + Result remains in memory. + Introduces usage of : `ZSTD_decompress()` + +- [Streaming memory usage](streaming_memory_usage.c) : + Provides amount of memory used by streaming context + Introduces usage of : `ZSTD_sizeof_CStream()` + +- [Streaming compression](streaming_compression.c) : + Compress a single file. + Introduces usage of : `ZSTD_compressStream()` + +- [Multiple Streaming compression](multiple_streaming_compression.c) : + Compress multiple files in a single command line. + Introduces memory usage preservation technique, + reducing impact of malloc()/free() and memset() by re-using existing resources. + +- [Streaming decompression](streaming_decompression.c) : + Decompress a single file compressed by zstd. + Compatible with both simple and streaming compression. + Result is sent to stdout. + Introduces usage of : `ZSTD_decompressStream()` + +- [Dictionary compression](dictionary_compression.c) : + Compress multiple files using the same dictionary. + Introduces usage of : `ZSTD_createCDict()` and `ZSTD_compress_usingCDict()` + +- [Dictionary decompression](dictionary_decompression.c) : + Decompress multiple files using the same dictionary. + Result remains in memory. + Introduces usage of : `ZSTD_createDDict()` and `ZSTD_decompress_usingDDict()` -- cgit v1.2.1