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) |
|
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
FuturesOrderedinjoin_allwhen dealing with large amounts of futures. We will probably need benchmarks to determine whatSMALLis.Closes #2201