lz4 / lz4-java

LZ4 compression for Java
Apache License 2.0
1.11k stars 252 forks source link

Support Compression / Decompression with Dictionaries #81

Open felixhandte opened 8 years ago

felixhandte commented 8 years ago

The current LZ4 C lib supports priming the codec state with a dictionary (in a newer, nicer way). It would be nice to surface those features in this library.

I'm looking at adding this now.

iSynaptic commented 6 years ago

Has anyone made progress on this?

wsargent commented 4 years ago

The frame format has the option of using a dictionary id, but there is no setting for it in the FLG structure https://github.com/lz4/lz4-java/blob/master/src/java/net/jpountz/lz4/LZ4FrameOutputStream.java#L320

I can do this with zstd-jni and -5 debug level so that's good enough.