-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize QuicStreamSetUpdateMaxStreams #4852
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4852 +/- ##
==========================================
+ Coverage 85.93% 86.55% +0.62%
==========================================
Files 56 56
Lines 17630 17685 +55
==========================================
+ Hits 15150 15308 +158
+ Misses 2480 2377 -103 ☔ View full report in Codecov by Sentry. |
bb0fac7
to
248543d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good. Just a few (mostly nit) comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks!
Description
Store new streams that are blocked by Stream Id flow control in a sorted list (instead of the hash table containing all streams) to improve the performances of
QuicStreamSetUpdateMaxStreams
.It will now be enough to iterate over a subset of this list instead of iterating over the entirety of opened streams when receiving a "MAX_STREAMS" frame increasing the limit.
Closes #3538
Testing
Already covered by existing tests.
Documentation
In code documentation added.