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.