I need to use a compression technique. But can't decide between lz4 and zlib. I searched internet a little bit and lz4 is much recommended but i didn't find any data about the output size. So can anyone tell me which one is better in terms of final output size.
Which one compress better in terms of size lz4 or zlib
6.3k views Asked by Lokesh Sharma At
2
There are 2 answers
0
On
Taken from this presentation: https://indico.cern.ch/event/631498/contributions/2553033/attachments/1443750/2223643/zlibvslz4presentation.pdf also checkout Difference: LZ77 vs. LZ4 vs. LZ4HC (compression algorithms)?
The lz4 Github repository has a benchmark that might be helpful. In general zlib will compress better, and take more time doing it, but your mileage may vary. Just try both on your data. Also look at zstd.