zlib is a patent-free open-source implementation of gzip for short. zlib provides a simple API for using gzip compression in your programs. The use of a shared library makes it simple to replace buggy implementations while reducing memory usage.