kjdev / php-ext-zstd

Zstd Extension for PHP
MIT License
201 stars 27 forks source link

zstd_compress_dict can not set compression level #40

Closed meetriks closed 2 years ago

meetriks commented 2 years ago

It seems impossible to use a dictionary and set the compression to a high level. I did some tested with the zstd cli version. Using zstd cli with a dictionary and the max level the end result is about 30% smaller, than with the default level.

I hope you can support setting the compression level for the dictionary. Thanks.