]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compression: optimize memLevel to improve byte rate
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 09:36:40 +0000 (11:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 09:36:40 +0000 (11:36 +0200)
commit7e488d781ccfb5615d860dc348035cc25b184a79
tree3074ccd5646bec88725c148c3ee07ac06947afb5
parent05d846092f7ef23b1158768cc7d1d40debe001a0
MINOR: compression: optimize memLevel to improve byte rate

Decreasing the deflateInit2's memLevel parameter from 9 to 8 does not
affect the compression ratio and increases the compression speed by 12%.
Lower values do not increase transfer speed but decrease the compression
ratio so it looks like 8 is optimal.
src/compression.c