GitHub user cgrushko opened a pull request:

    https://github.com/apache/commons-compress/pull/68

    Allow specifying Zstandard compression level

    ZstdCompressorOutputStream allows data compression using Zstandard, but the 
default compression level of 3 is hard-coded.
    Programs that wish to use a different compression level must reimplement 
ZstdCompressorOutputStream.
    This PR adds a constructor that takes a compression level and passes it to 
    `new ZstdOutputStream(...)`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cgrushko/commons-compress master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-compress/pull/68.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #68
    
----
commit 06aaeda033109060ef2d505ce09d7e7b27ef75f6
Author: Carmi Grushko <carmi@...>
Date:   2018-07-24T07:30:20Z

    Allow specifying Zstandard compression level
    
    ZstdCompressorOutputStream allows to compress data using Zstandard, but the 
default compression level of 3 is hard-coded.
    Programs that wish to use a different compression level must reimplement 
ZstdCompressorOutputStream.
    I suggest we add a constructor that takes a compression level and passes it 
to 
    `new ZstdOutputStream(...)`.

----


---

Reply via email to