dotnet / dotnet/runtime

Consider supporting `[AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder))]` in runtime-async

Open
#129,004 18 comments 1 reaction 1 assignee Claimed by @jakobbotsch View on GitHub
area-CodeGen-coreclr design-discussion runtime-async
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Right now methods marked with `[AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder))]` are showing a regression from pre-runtime-async due to allocations. This issue is opened to consider if there should be support for `AsyncMethodBuilder` or a similar mechanism in runtime-async.

For now, runtime-async is being disabled for methods with `[AsyncMethodBuilder(...)]`. See https://github.com/dotnet/runtime/pull/128943

@jakobbotsch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.