4 ms·
It's not worse than LZ4. LZ4 is just an LZ-based compression (find common strings, reference them), while LZFSE does both LZ compression and entropy coding (lik
by dchest 10y ago
It's not worse than LZ4. LZ4 is just an LZ-based compression (find common strings, reference them), while LZFSE does both LZ compression and entropy coding (like ZIP's deflate). It's comparable to zstd, which uses LZ and finite state entropy coder. They achieve better compression at lower (than just LZ-based compressor) speed. You can say they replace zlib, achieving much higher performance at pretty much the same compression ratio.
Apple's libcompression also provides LZ4 if you need it: https://developer.apple.com/library/ios/documentation/Performance/Reference/Compression/index.html https://developer.apple.com/library/ios/documentation/Perfor...