OPTIM: halog: improve field parser speed for modern compilers
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 08:58:22 +0000 (09:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 11:08:26 +0000 (12:08 +0100)
commitfc76bbc0f54f5d09db1f3d56469478212bf0c7bc
treef7cbd71e9b2dc208a62c965cfcca1d23ddc60499
parentfce4e6914435511e1913803241c1384264a7cb4d
OPTIM: halog: improve field parser speed for modern compilers

Modern compilers were producing producing less efficient code in the
field_start() loop, by not emitting two conditional jumps for a single
test. However by reordering the test we can merge the optimal case and
the default one and get back to good performance so let's simplify the
test. This improves the parsing speed by 5%.
admin/halog/halog.c