Repository navigation
Conversation
agnosticdev
left a comment
There was a problem hiding this comment.
In general this looks fine. This was originally done for performance reasons but since we do not use dictionaries anymore to interact with streams (thank goodness!) we can go back to the QUICStreamID type. I checked and this does not regress performance.
Curious if there was another reason you wanted to do this other for cosmetic purposes? Did an issue come up?
All stream IDs, stream or datagram, should have their own type for type safety and to restrict the limits. |
|
/benchmark |
Benchmark results
🟢 lower, 🔴 higher, ➖ no change: a change must exceed 0.25% and 3 times the variation between repeats of either build. QUICTransfer
Allocations: base 424250, 424552, 424815; head 424240, 424259, 424541 QUICStreamLoad
Allocations: base 360524, 360278, 360627; head 357745, 358872, 358230 IPUDPTransfer
Allocations: base 904234, 904234, 904234; head 904234, 904238, 904238 |
e6e1f96 to
71537e1
Compare
- Replace raw `UInt64` stream IDs with `QUICStreamID` across frame types, send items, shorthand log entries, and signposts - Add `QUICStreamID(uncheckedValue:)` for IDs decoded from variable-length integers and remove now-unused helpers - Drop redundant per-frame stream ID validation since decoded values are always in range - Interpolate raw `.value` in os.Logger messages to avoid `<private>` redaction of the custom type
71537e1 to
a4073dd
Compare
UInt64stream IDs withQUICStreamIDacross frame types, send items, shorthand log entries, and signpostsQUICStreamID(uncheckedValue:)for IDs decoded from variable-length integers and remove now-unused helpers.valuein os.Logger messages to avoid<private>redaction of the custom type