quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

Don't pre-allocate uni/bi stream #1677

Closed jeromegn closed 9 months ago

jeromegn commented 11 months ago

I've come to realize high memory usage might be caused by pre-allocated streams as set by max_concurrent_bidi_streams and max_concurrent_uni_streams.

If it was possible to lazily allocate, it would use far less memory on startup.

Ralith commented 9 months ago

Fixed in #1685, #1686.