

zlib-cloudflare is on average 90 percent faster than zlib-madler in compression operations.At compression level 6 (default) on Arm, we see: After the patches are merged with the Silesia Corpus, we can see that zlib-cloudflare compresses better (smaller file size) and faster when compared against the original zlib (zlib-madler) on both Arm and x86. We improved the performance of zlib-cloudflare by porting the decompression performance enhancement patches from zlib-chromium. A handcrafted build script is required to compile zlib-chromium on both Arm and x86. The aim of improving zlib-cloudflare was to have a single version of zlib that could be used for both compression and decompression operations, regardless of the CPU architecture.īetween zlib-cloudflare and zlib-chromium, we chose zlib-cloudflare because it has an easy-to-use build system (make) compared with zlib-chromium (gn, ninja). Additionally, we compare the four zlib forks on both compression and decompression operations, using the Silesia Corpus (a collection of modern-day workloads) and a custom benchmark tool. In this article, we’ll describe the work done in zlib-cloudflare to improve its decompression performance. Until recently, the Cloudflare fork of zlib (zlib-cloudflare) had the best performance for compression, and the Chromium fork (zlib-chromium) had the best performance for decompression among the four zlib forks considered:Īs a result, no single zlib fork was fastest in both compression and decompression.
#ZLIB SOURCE DOWNLOAD CODE#
This approach has resulted in the creation of several zlib forks, as there are multiple places in the code where performance improvements can be made. Because zlib is widely adopted, the maintainer of the original version accepts only bug fixes with significant impact.

This library is utilized by popular programs like the Java Development Kit (JDK), Linux distributions, libpng, Git, and many others. The zlib compression library is widely used to compress and decompress data.
#ZLIB SOURCE DOWNLOAD HOW TO#
Please see the documentation in GitHub for more information on how to use it. We recommend using zlib-cloudflare on Arm and x86 platforms.

Compression performance: ~113 percent faster than zlib-madler.Decompression performance: ~52 percent faster than zlib-madler.Compression performance: ~90 percent faster than zlib-madler (original zlib).in Finland and/or other countries worldwide.We worked with the maintainers of the Cloudflare fork of zlib (zlib-cloudflare) to improve the decompression performance on Arm and x86. Qt and respective logos are trademarks of The Qt Company Ltd.
#ZLIB SOURCE DOWNLOAD SOFTWARE#
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. This notice may not be removed or altered from any source distribution.ĭocumentation contributions included herein are the copyrights of Misrepresented as being the original software.ģ. Altered source versions must be plainly marked as such, and must not be In a product, an acknowledgment in the product documentation would beĢ. The origin of this software must not be misrepresented you must notĬlaim that you wrote the original software. Including commercial applications, and to alter it and redistribute itįreely, subject to the following restrictions:ġ. Permission is granted to anyone to use this software for any purpose, In no event will the authors be held liable for any damages This software is provided 'as-is', without any express or implied Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
