SpringMT / zstd-ruby

Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
https://github.com/facebook/zstd
BSD 3-Clause "New" or "Revised" License
69 stars 16 forks source link

Use the official default compression level (i.e. 0) #9

Closed gfx closed 7 years ago

gfx commented 7 years ago

In compression level, 0 is better than 1 as the default.

As the source shown, compression level == 0 results in ZSTD_CLEVEL_DEFAULT. Because ZSTD_CLEVEL_DEFAULT is not public, the only way to use it is to set 0 (or negative value) as the compression level.

BTW zstd v1.3.2 has been released a few days ago: https://github.com/facebook/zstd/releases

SpringMT commented 7 years ago

THX!