lz4_flex icon indicating copy to clipboard operation
lz4_flex copied to clipboard

How to specify the compression level?

Open purew opened this issue 1 year ago • 1 comments

I don't see any way of specifying the compression level in the encoder?

Another rust library allows specifying this as the level config

    // 0 == default (fast mode); values above 16 count as 16; values below 0 count as 0
    level: u32,

How can I specify this in lz4_flex?

purew avatar Jun 06 '24 17:06 purew

Compression level woud be via hc mode, which is not implemented currently. hc mode would be much slower though

https://github.com/PSeitz/lz4_flex/issues/21

PSeitz avatar Jun 06 '24 23:06 PSeitz