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 best solutions below
0
n0099
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)?
Related Questions in COMPRESSION
- How to use deflate/inflate SetDictionary with raw deflate/inflate?
- C# How to get file/ copy file from a bzip2 (.bz2) file without extracting the file
- How can I compress four floats into a string?
- Create ZIP File Then Send to Client
- compress json data from rest node.js use express compression
- Advanced Data Compression
- Tools to minify CDD and JS files
- How to use multiple threads for zlib compression (same input source)
- Data compression in RDBMS like Oracle, MySQL etc
- Haskell - Lempel-Ziv 78 Compression - very slow, why?
- Python: how to create tar file and compress it on the fly with external module, using different compression methods not available in tarfile module?
- Why isn't lossless compression automatic on computers?
- PHP Image Compression Before Upload
- Compression of char size integer by removing leading zeroes
- BMP Image Compression and Decompression in java
Related Questions in ZLIB
- How to use deflate/inflate SetDictionary with raw deflate/inflate?
- Zlib decompression method warning using ios 64bit Architecture
- Can't open zip file to read unicode characters
- decoding a compressed binary blob using zlib
- Compression is not working in ZLib library
- Xcode throws compile errors in zlib.h
- How to use multiple threads for zlib compression (same input source)
- Zip file encryption readable by some Zip clients, not others
- zlib uncompress a .zip file
- Zlib minimum deflate size
- "End of file reached" error OR Zlib::BufError using HTTParty
- Using zlib for std::string and stringstream
- Python 2.7 cant decode deflate encoding
- Uncaught incorrect header check using pako.js
- Extracting a gz file content with zlib and save it
Related Questions in LZ4
- Using LZ4 with Ruby on Rails
- LZ4: Compression of compressed image formats
- Which one compress better in terms of size lz4 or zlib
- Using LZ4HC algorithm in an ARM Cortex-M3 processor
- LZ4 compression library in android app
- Using lz4 compression in javascript without Node.js
- Reading large lz4 compressed JSON data set in Python 2.7
- decompress LZString in server side(java)
- Reading an LZ4 compressed text file (mozlz4) in WebExtensions (JavaScript, Firefox)
- LZ4 module not recognized in python
- LZ4 match search algorithm (fast scan)
- Why is my InputStream not reading all bytes of a specified file? (CRC32 archive validation)
- .net 5 - Signalr - Messagepack - lz4 - Error: unable to find ext type 98
- Streaming contents from lz4 file using InputStreamReader - Stream Corrupted - Java
- Why doesn't lz4 keep small/uncompressible values uncompressed?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.