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

Async method builder override #358

Open
Tracked by #342
ufcpp opened this issue Aug 13, 2021 · 1 comment
Open
Tracked by #342

Async method builder override #358

ufcpp opened this issue Aug 13, 2021 · 1 comment
Labels

Comments

@ufcpp
Copy link
Owner

ufcpp commented Aug 13, 2021

https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/async-method-builders.md

提案ドキュメント見ての通り、需要としては「メソッドごとに Pool を変えたい」みたいなやつ。
Task (長期生存が確定してるヒープアロケーションが必須) みたいなやつは GC には不向きだし、かといって global pool はすぐにパフォーマンスが悪化する(同じ Pool から大量のインスタンスを Rent したらすぐに gen 2 GC よりもパフォーマンスが落ちる)という問題があり。

https://ufcpp.net/study/csharp/sp5_awaitable.html とかにセクション追加?
https://ufcpp.net/study/csharp/sp5_async.html#task-like の辺り?

@ufcpp ufcpp mentioned this issue Aug 13, 2021
16 tasks
@ufcpp
Copy link
Owner Author

ufcpp commented Aug 13, 2021

関連: #265

@ufcpp ufcpp added the C# 10.0 label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant