aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_spdy.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-12-25 16:48:17 +0100
committerLoïc Hoguin <[email protected]>2019-12-25 16:48:17 +0100
commitb84021edf5b1b17f817d5a9bca40a08bbbfd572d (patch)
tree564604e8f3a525be974c8769d6922ac9df87fce9 /src/cow_spdy.hrl
parente6c6ded1cae77c6352077473b583488793f0edad (diff)
downloadcowlib-b84021edf5b1b17f817d5a9bca40a08bbbfd572d.tar.gz
cowlib-b84021edf5b1b17f817d5a9bca40a08bbbfd572d.tar.bz2
cowlib-b84021edf5b1b17f817d5a9bca40a08bbbfd572d.zip
Optimize HPACK Huffman decoding
The previous naive implementation ended up not benefitting from binary match context reuse because it was matching on bit boundaries (and not bytes). This new implementation matches a byte at a time. The result is almost twice faster when decoding the examples from the HPACK RFC (before/after): cow_hpack:decode_huffman in 0.250666s cow_hpack:decode_huffman in 0.133743s
Diffstat (limited to 'src/cow_spdy.hrl')
0 files changed, 0 insertions, 0 deletions