Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

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

Merged
upsuper merged 2 commits into
rust-zh:masterfrom
bdbai:patch-1
May 3, 2022
Merged

去除有关 join_all 性能问题的推荐#10
upsuper merged 2 commits into
rust-zh:masterfrom
bdbai:patch-1

Conversation

@bdbai
Copy link
Copy Markdown
Contributor

@bdbai bdbai commented May 1, 2022

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

Comment thread content/await-multiple-futures.md
@upsuper upsuper merged commit 84e5f82 into rust-zh:master May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants