]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Add LIT_MEM define to use more memory for a small deflate speedup.
authorMark Adler <madler@alumni.caltech.edu>
Tue, 30 Jan 2024 00:38:32 +0000 (16:38 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Feb 2024 18:15:56 +0000 (19:15 +0100)
commita3fb271c6efa337bda675d09d674179007a1be90
tree530533880bb16fddfef659c87359dc9f233bcc30
parent41ed14070b5894c3a6548c4d9aeda43d9444778f
Add LIT_MEM define to use more memory for a small deflate speedup.

A bug fix in zlib 1.2.12 resulted in a slight slowdown (1-2%) of
deflate. This commit provides the option to #define LIT_MEM, which
uses more memory to reverse most of that slowdown. The memory for
the pending buffer and symbol buffers is increased by 25%, which
increases the total memory usage with the default parameters by
about 6%.

madler/zlib#ac8f12c97d1afd9bafa9c710f827d40a407d3266
deflate.c
deflate.h
deflate_p.h
deflate_slow.c
trees.c