Skip to content
Commit 002f75df authored by Adenilson Cavalcanti's avatar Adenilson Cavalcanti Committed by Copybara-Service
Browse files

[zlib] Reland 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: I88e6514edcab186cf9680534510fb98fe4e71222
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5123674


Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: default avatarHans Wennborg <hans@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1238747}
NOKEYCHECK=True
GitOrigin-RevId: 0907ce97d55eab9484b17efce416354463cbafeb
parent beb2b584
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment