commit | fcce0e1e093b75b3edf4188fa95bb5a55398478a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Apr 01 17:16:44 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Apr 01 17:29:06 2022 +0200 |
tree | 7a11603fa456fffa5433ebbd58299d81651a2405 | |
parent | 17b4687a896fda6bc7c98494c727ab74793df060 [diff] |
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.