]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cache: Improve accept_encoding_normalizer
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 30 Nov 2020 16:06:03 +0000 (17:06 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 2 Dec 2020 15:32:54 +0000 (16:32 +0100)
commit8bb72aa82fd68822fc116f58a062e97c924b4fe5
tree7ff3eda277a072ab5ae9a7619fecfcada5f99c9c
parentf67442efdb509d5d15f530a536b13f29fa7f48b7
MINOR: cache: Improve accept_encoding_normalizer

Turn the "Accept-Encoding" value to lower case before processing it.
Calculate the CRC on every token instead of a sorted concatenation of
them all (in order to avoir copying them) then XOR all the CRCs into a
single hash (while ignoring duplicates).
reg-tests/cache/vary.vtc
src/cache.c