-
Notifications
You must be signed in to change notification settings - Fork 628
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
Use futuresordered in join_all #2412
Conversation
I think CI is failing because |
Yeah, I think you probably have to use |
Btw, at the time this PR was opened, it was cfg_target_has_atomic, but now it is futures_no_atomic_cas after #2400 has been merged. |
Is this a pin-project-lite problem? |
Yeah, that is pin-project-lite's limitation: taiki-e/pin-project-lite#3 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @ibraheemdev!
Hey folks! Thanks for the optimization. Were any benchmarks performed for this? Also, would the same optimization apply to https://github.com/rust-lang/futures-rs/blob/dd019055ef5bf4309f15db934407e202caf52e14/futures-util/src/future/try_join_all.rs ? It seems to have the same shape. |
Good point, |
Switch to
FuturesOrdered
injoin_all
when dealing with large amounts of futures. We will probably need benchmarks to determine whatSMALL
is.Closes #2201