diff options
author | Loïc Hoguin <[email protected]> | 2019-12-25 16:48:17 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-12-25 16:48:17 +0100 |
commit | b84021edf5b1b17f817d5a9bca40a08bbbfd572d (patch) | |
tree | 564604e8f3a525be974c8769d6922ac9df87fce9 /src/cow_spdy.hrl | |
parent | e6c6ded1cae77c6352077473b583488793f0edad (diff) | |
download | cowlib-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