quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.85k stars 394 forks source link

Don't allocate an endpoint response buffer for every driver wakeup #1730

Closed Ralith closed 11 months ago

Ralith commented 11 months ago

Most packets (under good conditions), let alone most wakeups, don't require a response from the endpoint, so this was very wasteful. BytesMut::new is guaranteed to grow automatically when needed.