PSeitz / lz4_flex

Fastest pure Rust implementation of LZ4 compression/decompression.
MIT License
438 stars 28 forks source link

How to specify the compression level? #165

Open purew opened 3 months ago

purew commented 3 months ago

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?

PSeitz commented 3 months ago

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