]> git.kaiwu.me - haproxy.git/commit
MINOR: hpack: use ist2bin() to copy header names in hpack_encode_header()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 05:27:06 +0000 (06:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 08:06:46 +0000 (09:06 +0100)
commitac73ae0b83cc72eff19f2f6c26d0b55f49b2e0c3
tree2614ef192d3ecd57a93213ecbda155dd3b84b500
parent1526f1942c1c67cb6c1b82750dbb2e3374b4792f
MINOR: hpack: use ist2bin() to copy header names in hpack_encode_header()

memcpy() tends to be overkill to copy short strings, better use ist's
naive functions for this. This shows a consistent 1.2% performance
gain with h2load.
src/hpack-enc.c