define LSHPACK_DEC_HTTP1X_OUTPUT 0 lighttpd does not require HTTP/1.1 output compat from HPACK decoder ("field-name: value\r\n") define NDEBUG (in ls-hpack/lshpack.c) lighttpd spends upwards of 20% total lighttpd CPU time in HPACK encode/decode in h2load test on static file over cleartext (not TLS) Defining NDEBUG eliminates some asserts() and results in a small but measurable reduction in CPU usage |
||
---|---|---|
.. | ||
deps/xxhash | ||
LICENSE | ||
README.md | ||
huff-tables.h | ||
lshpack.c | ||
lshpack.h | ||
lsxpack_header.h |
README.md
LS-HPACK: LiteSpeed HPACK Library
Description
LS-HPACK provides functionality to encode and decode HTTP headers using HPACK compression mechanism specified in RFC 7541.
Documentation
The API is documented in include/lshpack.h. To see usage examples, see the unit tests.
Requirements
To build LS-HPACK, you need CMake. The library uses XXHASH at runtime.
Platforms
The library has been tested on the following platforms:
- Linux
- FreeBSD
- Windows
Copyright (c) 2018 - 2020 LiteSpeed Technologies Inc