Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider yielding early if we have filled buffers to some degree #149

Open
thomaseizinger opened this issue Dec 16, 2022 · 0 comments
Open

Comments

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Dec 16, 2022

Today, we are doing as much work as possible within poll. We may want to consider yielding early but requesting an immediate wakeup again to allow other components to read from those buffers if they are on the same task.

cc @dignifiedquire (The code you see here is not the latest stable release used in rust-libp2p as of this writing. See libp2p/rust-libp2p#3013.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant