压缩器选项


¥Compressor options

可以在 Zstd 编码器上设置几个选项,影响压缩效率和速度。键和值都可以作为 zlib.constants 对象的属性访问。

¥There are several options that can be set on Zstd encoders, affecting compression efficiency and speed. Both the keys and the values can be accessed as properties of the zlib.constants object.

最重要的选项是:

¥The most important options are:

  • ZSTD_c_compressionLevel

    • 根据预定义的 cLevel 表设置压缩参数。默认级别为 ZSTD_CLEVEL_DEFAULT==3。

      ¥Set compression parameters according to pre-defined cLevel table. Default level is ZSTD_CLEVEL_DEFAULT==3.