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

去除有关 join_all 性能问题的推荐 #10

Merged
merged 2 commits into from May 3, 2022
Merged

Conversation

bdbai
Copy link
Contributor

@bdbai bdbai commented May 1, 2022

rust-lang/futures-rs#2412 中引入的修改使得 futures::future::join_all 在遇到大量或不定数量的 Future 时使用 FutureOrdered 实现,避免了全量 poll 带来的开销。考虑到 join 系列函数并不能动态插入 Futurepoll,这里依然保留了 FuturesOrdered/FuturesUnordered 的介绍,并略微修改了一下说明。

@upsuper upsuper merged commit 84e5f82 into rust-zh:master May 3, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants