diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-04 10:48:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 10:48:41 +0200 |
commit | d6e70c6df9ab9bf768efa69ba29601b64721ffd1 (patch) | |
tree | c7286b7f1572e01104737beb13b7a0fccbd18284 /vendor/github.com/klauspost/compress/zstd/README.md | |
parent | 1f8c509fafb4ce41970c4f28ed55daec459c7520 (diff) | |
parent | 545aef7d9bd48b268222540ef7c5ffbf8b02ea6e (diff) | |
download | podman-d6e70c6df9ab9bf768efa69ba29601b64721ffd1.tar.gz podman-d6e70c6df9ab9bf768efa69ba29601b64721ffd1.tar.bz2 podman-d6e70c6df9ab9bf768efa69ba29601b64721ffd1.zip |
Merge pull request #6487 from rhatdan/VENDOR
Vendor in container/storage v1.20.2
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/README.md')
-rw-r--r-- | vendor/github.com/klauspost/compress/zstd/README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/README.md b/vendor/github.com/klauspost/compress/zstd/README.md index bc977a302..f2a80b5d0 100644 --- a/vendor/github.com/klauspost/compress/zstd/README.md +++ b/vendor/github.com/klauspost/compress/zstd/README.md @@ -309,6 +309,20 @@ The decoder can be used for *concurrent* decompression of multiple buffers. It will only allow a certain number of concurrent operations to run. To tweak that yourself use the `WithDecoderConcurrency(n)` option when creating the decoder. +### Dictionaries + +Data compressed with [dictionaries](https://github.com/facebook/zstd#the-case-for-small-data-compression) can be decompressed. + +Dictionaries are added individually to Decoders. +Dictionaries are generated by the `zstd --train` command and contains an initial state for the decoder. +To add a dictionary use the `RegisterDict(data)` with the dictionary data before starting any decompression. + +The dictionary will be used automatically for the data that specifies them. + +A re-used Decoder will still contain the dictionaries registered. + +When registering a dictionary with the same ID it will override the existing. + ### Allocation-less operation The decoder has been designed to operate without allocations after a warmup. |