Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What're lzo and lzf, and the differences?

Hi I heard of lzo and lzf and seems they are all compression algorithms. Are they the same thing? Are there any other algorithms like them(light and fast)?

like image 916
Mickey Shine Avatar asked Feb 23 '11 09:02

Mickey Shine


People also ask

What is lzf compression?

LZF-compress is a Java library for encoding and decoding data in LZF format, written by Tatu Saloranta ([email protected]) Data format and algorithm based on original LZF library by Marc A Lehmann. See LZF Format Specification for full description.

How does Lzo compression work?

LZO compresses a block of data into matches (a sliding dictionary) and runs of non-matching literals to produce good results on highly redundant data and deals acceptably with non-compressible data, only expanding incompressible data by a maximum of 1/64 of the original size when measured over a block size of at least ...


1 Answers

lzo and lzf are 2 well known very simple compression algorithms. lzf goes for low memory usage during compression. lzo goes for maximum decoding speed. Both are fast, both have little memory requirements, both have comparable compression rates (which means very poor).

You can look at a direct comparison of them with other compressors here for example : http://phantasie.tonempire.net/t96-compression-benchmark#149

like image 114
Cyan Avatar answered Nov 14 '22 11:11

Cyan