Idea: Take advantage of new size_hint method in streams #1623
Labels
A-tokio
Area: The main tokio crate
C-enhancement
Category: A PR with an enhancement or bugfix.
M-stream
Module: tokio/stream
I noticed that the futures crate recently accepted the following change rust-lang/futures-rs#1853, which adds a size_hint method to the Stream trait. Perhaps this information can be used to optimize certain places that handle streams in tokio.
Note - I am not familiar with how tokio is implemented, so I am not sure if this is a valid suggestion or not.
The text was updated successfully, but these errors were encountered: