Closed jeromegn closed 1 year ago
I have tested this in corrosion and it significantly reduced memory usage. As far as I can tell everything is working as intended but I'd like somebody to thoroughly review it.
Shall we merge or are we waiting for a commit history cleanup from me? :)
I have a cleaned up branch but was failing to push it up to your remote... let me just push it here.
See #1685. Might do more golfing later. @jeromegn would you mind forward porting?
Made a PR for the forward port: https://github.com/quinn-rs/quinn/pull/1686
This PR wraps
Recv
andSend
streams inOption<Box<T>>
to prevent significant memory pre-allocation.Still a few things to verify / do:
None
value when it should beSome
None
or aSome
exactly...(Hopefully) Fixes #1677