Only do one map lookup instead of two in QuicheLinkedHashMap::insert().

Instead of find() then insert(), use try_emplace().
This change is inspired by cl/163240273.

Also factor out two insert() calls into InsertInternal().

PiperOrigin-RevId: 372947805
1 file changed
tree: 4ab0197183d99c2fa1a800300389c8e5bfa17498
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.

Code can be viewed in CodeSearch in Quiche and is imported into Chromium.