Reputation: 107
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.
Upvotes: 1
Views: 7725
Reputation: 112219
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.
Upvotes: 4
Reputation: 1323
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)?
Upvotes: 1