]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: slz: support crc32c for lookup hash on sse4 but only if requested
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Apr 2023 09:35:19 +0000 (11:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 May 2025 14:43:53 +0000 (16:43 +0200)
commit248bbec83c32591c9f81fb59b47983c85b726ec1
tree1e8e01839feafe77feb785e14f39114dd9d0f6b4
parentea1b70900f9876a7868f71a28dd0675472ef7e83
IMPORT: slz: support crc32c for lookup hash on sse4 but only if requested

If building for sse4 and USE_CRC32C_HASH is defined, then we can use
crc32c to calculate the lookup hash. By default we don't do it because
even on skylake it's slower than the current hash, which only involves
a short multiply (~5% slower). But the gains are marginal (0.3%).

This is slz upstream commit 44ae4f3f85eb275adba5844d067d281e727d8850.

Note: this is not used by default and only merged in order to avoid
divergence between the code bases.
src/slz.c