]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: hpack: read 32 bits at once when possible.
authorWilly Tarreau <w@1wt.eu>
Fri, 1 Apr 2022 15:16:44 +0000 (17:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Apr 2022 15:29:06 +0000 (17:29 +0200)
commitfcce0e1e093b75b3edf4188fa95bb5a55398478a
tree7a11603fa456fffa5433ebbd58299d81651a2405
parent17b4687a896fda6bc7c98494c727ab74793df060
OPTIM: hpack: read 32 bits at once when possible.

As suggested in the comment, it's possible to read 32 bits at once in
big-endian order, and now we have the functions to do this, so let's
do it. This reduces the code on the fast path by 31 bytes on x86, and
more importantly performs single-operation 32-bit reads instead of
playing with shifts and additions.
src/hpack-huff.c