OPTIM: halog: skip fields 64 bits at a time when supported
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 09:02:52 +0000 (10:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 11:08:26 +0000 (12:08 +0100)
commite9f4d67b15cbd98c6d67cc7cad285ea4e7761711
tree8c0a6e27f0578266ab005719b921265d80becfc5
parentfc76bbc0f54f5d09db1f3d56469478212bf0c7bc
OPTIM: halog: skip fields 64 bits at a time when supported

Some architectures like x86_64 and aarch64 support efficient unaligned
64-bit reads. On such architectures, we already know that each string
passed to field_start() has some margin at the end because it's parsed
using fgets2() which looks for the trailing LF using the same method.
Thus let's skip spaces by packs of 8. This increases the parsing speed
by 35%.
admin/halog/halog.c