]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: ebtree: make string_equal_bits turn back to unsigned char
authorWilly Tarreau <w@1wt.eu>
Sat, 30 Dec 2023 15:28:05 +0000 (16:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 6 Jan 2024 12:35:42 +0000 (13:35 +0100)
commit2a14f99dbb243df5bb29866285b0ce922b4198a1
tree09a3a373415c987d3259b63b06fbbbaf76343713
parent1c46a0746038416a6c098a71d512a6e1a65b9184
IMPORT: ebtree: make string_equal_bits turn back to unsigned char

With flsnz() instead of flsnz_long() we're now getting a better
performance on both x86 and ARM. The difference is that previously
we were relying on a function that was forcing the use of register
%eax for the 8-bit version and that was preventing the compiler
from keeping the code optimized. The gain is roughly 5% on ARM and
1% on x86.

This is cbtree commit 19cf39b2514bea79fed94d85e421e293be097a0e.
This is ebtree commit a9aaf2d94e2c92fa37aa3152c2ad8220a9533ead.
include/import/ebtree.h