Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder, if there are any faster builds of zlib around with more advanced optimizations?

If it's possible to optimize it using SSE instructions or Intel C++ compiller, or some trick which were patented earlier (I know patents were a serious limitation during gzip/zlib development), have anyone bothered to implement that?

I am especially interested in compression speed, which have a direct impact on high-performance web-services serving static & dynamic content.

share|improve this question

closed as off-topic by weeheavy, kasperd, mdpc, HBruijn Jan 1 at 14:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

Not a rebuild, but two good alternatives to zlib are quicklz and fastlz. Both are very fast relative to gzip -1, but do not achieve as good of a compression ratio. For my application, size was going up 10-15% but compression speed was 6x, so a very good tradeoff.

Of course neither is compatible with zlib, so it may not work for you.

share|improve this answer
    
Yes, I would need compatible one, for both API and algorithm. – BarsMonster Jul 17 '10 at 4:33

Another alternative is the miniz library (public domain, unlicense.org), which implements most of the zlib API in a single C source file and reads/writes zlib-compatible compressed data streams. At compression level 1 it uses a real-time compressor which is extremely fast (a little slower than minilzo, but with higher compression).

share|improve this answer

Several years after this question was first asked some faster x86_64 zlib's appeared using the type of optimization BarsMonster suggested:

The authors of samtools (a suite of tools for interacting with high-throughput sequencing data) produced a comparison of zlib speeds.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.