commit | 1526f1942c1c67cb6c1b82750dbb2e3374b4792f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Dec 10 13:36:56 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 11 09:06:46 2018 +0100 |
tree | 1b27a9cbd7411fc3986cd24c465b6965f6727fe0 | |
parent | 2df026fbce8e5686c5639235c5ff0a54ffc5a817 [diff] |
MINOR: hpack: simplify the len to bytes conversion The len-to-bytes conversion can be slightly simplified and optimized by hardcoding a tree lookup. Just doing this increases by 1% the request rate on H2. It could be made almost branch-free by using fls() but it looks overkill for most situations since most headers are very short.