]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: eb32/eb64: place an unlikely() on the leaf test
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Jun 2025 17:51:49 +0000 (19:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Sep 2025 12:30:32 +0000 (14:30 +0200)
commit6c54bf7295cafe453c67357e4bb2365d39e6a5f0
tree533a38a763a5f09257c934c84c71afe720db9552
parent384907f4e7790061538f527e3fa68c79d903cfb6
IMPORT: eb32/eb64: place an unlikely() on the leaf test

In the loop we can help the compiler build slightly more efficient code
by placing an unlikely() around the leaf test. This shows a consistent
0.5% performance gain both on eb32 and eb64.

This is ebtree commit 6c9cdbda496837bac1e0738c14e42faa0d1b92c4.
include/import/eb32tree.h
include/import/eb64tree.h
src/eb32tree.c
src/eb64tree.c