You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
load_hpack takes ~9% of total CPU at high request rates #883
Running an HTTP/2 server at ~1M req/s on ARM64, load_hpack is ~9% of total CPU in our profiles. Feels way too high for header decoding. I looked through the source and I think there's a lot of low-hanging fruit. Happy to send patches.
changed the title [-]load_hpack takes ~10% of total CPU at high request rates[/-][+]load_hpack takes ~9% of total CPU at high request rates[/+]on Mar 30, 2026
Activity
[-]load_hpack takes ~10% of total CPU at high request rates[/-][+]load_hpack takes ~9% of total CPU at high request rates[/+]seanmonstar commentedon Mar 30, 2026
Sure, optimizations are always welcome!
perf: optimize HPACK Huffman decoding with 8-bit lookup table
perf: optimize HPACK Huffman decoding with 8-bit lookup table
perf: optimize HPACK Huffman decoding with 8-bit lookup table
seanmonstar commentedon Jul 28, 2026
FWIW, there's one optimization PR up now, #926.
aryehlev commentedon Aug 2, 2026
@seanmonstar awesome! i didnt get to it, but once you merge i will test it