Use absl::InlinedVector for fragments in HttpHeaderBlock

quiche::HttpHeaderBlock::HeaderValue::fragments_ was a std::vector<> which meant
that it required an extra heap allocation for every header. Use an
absl::InlinedVector instead so that in the common case of only one value for a
header no extra heap allocation is needed.

This improves the performance of Chromium's CreateSpdyHeadersFromHttpRequest()
from 5424ns median to 4372ns median when measured using the benchmark at https://chromium-review.googlesource.com/c/chromium/src/+/4902677.

No functional change.

PiperOrigin-RevId: 570579948
4 files changed
tree: 5bd0f0cdfbfd764fc9b1711642ed769836547b44
  1. build/
  2. depstool/
  3. quiche/
  4. .bazelrc
  5. BUILD.bazel
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
  9. WHITESPACE
  10. WORKSPACE.bazel
README.md

QUICHE

QUICHE stands for QUIC, Http, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.

There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:

To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:

To contribute to QUICHE, follow instructions at CONTRIBUTING.md.

QUICHE is only supported on little-endian platforms.