压缩器选项
【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。
ZSTD_c_strategy- 选择压缩策略。
- 可能的取值列在下面的策略选项部分。