News: 0001471957

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Zlib-ng 2.2 Speeds Up Compression By ~12% On x86_64 CPUs

([Free Software] 102 Minutes Ago zlib-ng 2.2 RC)


The first release candidate of Zlib-ng 2.2 for this drop-in replacement to the Zlib data compression library is now available for testing. Zlib-ng continues to ship new performance optimizations and other tuning for providing faster Zlib performance on modern processors.

Zlib-ng continues to retain API compatibility with Zlib while also offering a modernized native API variant, a clean C11 syntax, and supporting a variety of CPU intrinsics for different architectures. The Zlib-ng 2.2 release candidate out today has a number of additional changes and new optimizations. Zlib-ng on x86_64 hardware at the default compression level is around 12% faster than prior releases.

Zlib-ng 2.2 has also been working on overhauling its memory allocation handling. As explained in today's release candidate announcement:

"This release contains several large changes and optimizations. On x86-64 for example, this leads to a compression speedup of ~12% on default level.

We also have a major reorganization of memory alloc/free to always happen during init, this allows applications to potentially do the init early and be finished with the malloc system calls before it needs to process latency sensitive compression/decompression. It also ensures that zlib-ng can not fail due to memory pressure after having run the init functions successfully. We also now only do a single memory allocation deflate or inflate, ensuring we do less system calls and the allocated buffers live close together in memory. Compression or decompression of very small buffers will now also be faster due to spending less time doing malloc/free."

Downloads and more details on the changes coming with Zlib-ng 2.2 can be found via the [1]2.2 release candidate announcement .



[1] https://github.com/zlib-ng/zlib-ng/releases/tag/2.2.0



Kjell

Hazel

<Iambe> conning the most intellegent people on the planet is not easy