Skip to content

Use the PoolingAsyncValueTaskMethodBuilder to remove state machine allocations for async readsΒ #34645

@davidfowl

Description

@davidfowl

Use [AsyncMethodBuilder(typeof(PoolingAsyncValueTaskMethodBuilder<>))] on Kestrel ReadAsync methods to remove per read allocations in the mainline body reading logic.

Places of interest:

cc @BrennanConroy Part of this is to make WebSockets allocation free.

Metadata

Metadata

Labels

Perfarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions