airlift / aircompressor

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

The result is different #175

Closed GoodbyeV closed 1 year ago

GoodbyeV commented 1 year ago

Why is my data compressed in java different from the data compressed by the lzo library implemented by ANSI C using jni on the mobile side

dain commented 1 year ago

Due to licensing differences, the LZO implementation in aircompressor is completely different from the C codebase. The LZO implementation here is a version of the LZ4 codebase modified to output LZO commands instead of LZ4. We do not recommend that people use LZO as it is an old algorithm, and LZ4 is better in every measurable way, and has a much better license. We only provide LZO here as a way for people to migrate away from it.