Data Compression Algorithm lzo (C #)

Source: Internet
Author: User

Lzo is a kind of data compression dedicated to decompression speed.AlgorithmLzo is the abbreviation of Lempel-Ziv-oberhumer. This algorithm is a lossless algorithm. For more information, see implementation.ProgramIs thread-safe.

Lzop is a free software tool to implement it. The original library was written in ansi c and published under the GNU General Public License. Currently, lzo is available in various versions for Perl, Python, and Java.CodeThe copyright owner is Markus F. X. J. oberhumer.

The lzo library implements many algorithms with the following features:

* Decompression is simple and fast.
* No memory is required for decompression.
* Compression is quite fast.
* 64 kB memory is required for compression.
* The compression ratio can be increased at the cost of the compression speed, and the decompression speed will not be reduced.
* This includes the compression level for generating pre-compressed data, which can achieve a competitive compression ratio.
* There is also a compression level that only requires 8 KB of memory.
* The algorithm is thread-safe.
* Algorithms are lossless.

Lzo supports repeated compression and in-situ decompression.

Lzo is a block compression algorithm-compressing and compressing data into blocks. The size of the Block Used for compression and decompression must be the same.

Lzo compresses data blocks into a sequence of matched data (slide dictionary) and non-matched text. Lzo provides special processing for long matching data and long non-matching text sequences, which can achieve good results for highly redundant data, in addition, data that cannot be compressed can be effectively accepted.

When processing non-compressed data, lzo expands each 1024-byte input data block to 16 bytes.

It is reported that lzo is also implemented on AIX, convexos, Irix, Mac OS, Palm OS, PS1 (PlayStation), Solaris, SunOS, TOS (Atari st), and VxWorks.

References:

Http://zh.wikipedia.org/wiki/LZO

Source Code address:

C: http://www.oberhumer.com/opensource/lzo/

C #: http://lzohelper.codeplex.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.