The Smaz short string compression algorithm by Salvatore Sanfilippo.
Use Case
- Smaz is a simple compression library suitable for compressing very short strings with 4 to 100 characters.
- This port currently only supports ASCII characters and will throw an exception when trying to compress non-ascii characters.
Library
Mainly when a single value is repeated for many times. As in the case of the presented data it is compressed to 80%, but "ababababab" would "compress" to 200% the original!
zlib compressed data are typically written with a gzip or a zlib wrapper.
Library
gzip is a file format and a software application used for file compression and decompression.
Library
Library
Brotli is a data format specification for data streams compressed with a specific combination of the general-purpose LZ77 lossless compression algorithm, Huffman coding and 2nd order context modelling.
Best for js and css files.
Library
xz is a lossless compression program and file format which incorporates the LZMA/LZMA2 compression algorithms.These are the same compression formats used by the 7-Zip program and its command-line version p7zip.
Library
lzop is a free software file compression tool which implements the LZO algorithm and is licensed under the GPL.
Library