diff options
author | Adenilson Cavalcanti <cavalcantii@chromium.org> | 2023-12-13 22:49:10 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-12-13 14:58:31 -0800 |
commit | 38c8e309f196934c72c3cc66755cb1db1dc6bbc0 (patch) | |
tree | 93b7b060c7a6873d2b65e257481eeb134ad25cd6 | |
parent | 69a2e01edd818a76949f4f499e14feac896aad8f (diff) | |
download | zlib-38c8e309f196934c72c3cc66755cb1db1dc6bbc0.tar.gz |
[zlib] Enable LIT_MEM code path
Introduced on zlib 1.3.0.1, this will allow a small compression
speed improvement at cost of using a bit more memory.
Observed average gain was 2.6% (SPR) and 2.3% (M1).
It is interesting that it will have a bigger impact on files with higher entropy like JPG (+5.3%) and pre-compressed (baddata +7%), probably because those are cases where more literals are produced by the encoder since it is harder to find matches in LZ77 for such inputs.
Bug: 1447443
Change-Id: I09f15c8bd0f400d5485a10aa38bdc2dd1ece2449
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5078349
Reviewed-by: Hans Wennborg <hans@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1237242}
NOKEYCHECK=True
GitOrigin-RevId: 0f445392841590a53180bf4c4e9a9d9b9d627c6a
-rw-r--r-- | deflate.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -25,7 +25,7 @@ /* define LIT_MEM to slightly increase the speed of deflate (order 1% to 2%) at the cost of a larger memory footprint */ -/* #define LIT_MEM */ +#define LIT_MEM /* =========================================================================== * Internal compression state. |