]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: don't use unlikely() in hex2i()
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 10:19:54 +0000 (11:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 10:19:54 +0000 (11:19 +0100)
commitaa39860aeffbe4a6fe621bbdc5bfd1b12e16468b
treedc4677b879607f9caf02742d60a86f4782b8d50e
parentb15e3fefc96b772e5da54631a83a11c32b7e0111
MINOR: tools: don't use unlikely() in hex2i()

This small inline function causes some pain to the compiler when used
inside other functions due to its use of the unlikely() hint for non-digits.
It causes the letters to be processed far away in the calling function and
makes the code less efficient. Removing these unlikely() hints has increased
the chunk size parsing by around 5%.
include/common/standard.h