]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hpack: optimize header encoding for short names
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 05:42:01 +0000 (06:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 08:06:46 +0000 (09:06 +0100)
commit19ed92b47d7cbcdbafa4e18d052b87e04903741c
tree3c7e87a38e12e57cd73368c1142453560f75c086
parentac73ae0b83cc72eff19f2f6c26d0b55f49b2e0c3
MINOR: hpack: optimize header encoding for short names

For unknown fields, since we know that most of them are less than 127
characters, we don't need to go through the loop and can instead directly
emit the one-byte length encoding. This increases the request rate by
approximately 0.5%.
src/hpack-enc.c