1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00
Files
mvfst/quic/state/test/QuicStreamFunctionsTest.cpp
Matt Joras 038b9a2d67 Remove open stream sorting.
Summary:
The idea of having a sorted deque to do this makes some sense, but it ends up extremely inefficient for workloads that churn through a lot of streams.

Mitigate this by instead tracking the open streams with a `FastSet`. For a very small number of streams this will probably be slightly less efficient, but not measurably.

Reviewed By: kvtsoy

Differential Revision: D18409885

fbshipit-source-id: 2214640682926b4b4525700df85627f6125cabe8
2019-11-18 10:29:59 -08:00

77 KiB