Return back BeginSend/EndSend to HttpClient for best performance #86867
-
As Microsoft mentiones Begin/End pattern more performant than Async/await So i do suggest to return back Begin/End putterns especially for Send methods to get best performance in applications which do extensive sends. |
Beta Was this translation helpful? Give feedback.
Answered by
stephentoub
May 29, 2023
Replies: 1 comment 15 replies
-
Where does "Microsoft mention" that? It is inaccurate and we're not going to add new such begin/end methods. |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, I mean APIs returning
Task
,Task<T>
,ValueTask
, andValueTask<T>
.Again, I'd recommend you read the article I linked.