airlift / aircompressor

A port of Snappy, LZO, LZ4, and Zstandard to Java
Apache License 2.0
570 stars 113 forks source link

Configurable compression level in ZstdCompressor #99

Closed waypoint100 closed 1 year ago

waypoint100 commented 5 years ago

That would be very helpful

glukasiknuro commented 3 years ago

It looks like only level 3 is implemented in aircompressor (possibly levels 2 and 4 for some particular file sizes), so it's not straightforward to enable other levels.

See https://github.com/airlift/aircompressor/blob/24b4f18dcb8a70d273ba1d1cd4c0715f15909573/src/main/java/io/airlift/compress/zstd/CompressionParameters.java#L152

dain commented 1 year ago

Only the default level is supported right now, so it doesn’t make sense to allow it to be configurable at this time