[Zlib] use intel ppl to improve zlib Performance

Source: Internet
Author: User

Compression is often used on servers. zlib is the default option, although there are many other quick compression methodsAlgorithmFor example, snappy and lz4. but zlib has the most extensive support and a good compression ratio, that is, the speed is too unsatisfactory.

Intel has a high-performance database PPL, which includes zlib optimization in the middle. It is easy to use, that is, it can be linked to OK, and the performance can be improved by about 30%.

I installed ppl under/usr/local/PPL, so you may need to add the include path. Do you need to initialize the CPU.

Include directory/usr/local/iPP/include

Then there is the static library/dynamic library directory:

/Usr/local/iPP/composer_xe_2013.1.117/iPP/lib/intel64

/Usr/local/iPP/composer_xe_2013.1.117/iPP/interfaces/data-compression/ipp_zlib/bin/intel64

Then there is the link. Because zlib of PPL is compatible with zlib, the header file can use zlib,

Links ipp_z, ippdc_l, ipps_l, and ippcore_l libraries in sequence.

If it is a dynamic link, remove _ L.

 

Lz4 speed is good, you can also consider the http://code.google.com/p/lz4/

PS:

Intel's ppl library is not expensive. for commercial use, please support genuine version.

For non-commercial use, you can apply for a free license.

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.