Do not recalculate BalsaHeaders::iterator_base::value_ unless necessary.

Frequently there are back-to-back it->first and it->second calls.  By making
`value_` an absl::optional<> type, it is possible to avoid recalculating it on
every Lookup() call.

`value_` is initialized to absl::nullopt upon construction.  It is copied by the
implicit copy assignment operator and copy constructor, and will contain the
correct views into `*header_`.  It is now reset upon iterator increment.  There
should be no other ways to mutate the iterator.

PiperOrigin-RevId: 446239817
1 file changed
tree: 6ce6bb698ef40beb8b99c3bfb21cef4d9805c7e4
  1. quiche/
  2. CONTRIBUTING.md
  3. LICENSE
  4. README.md
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.