resharper-heapview icon indicating copy to clipboard operation
resharper-heapview copied to clipboard

Allocations in async method, maybe awaits

Open controlflow opened this issue 11 years ago • 2 comments

controlflow avatar May 21 '14 19:05 controlflow

ValueTask<T> awaits usually do not allocates... Do we care about allocations in async code at all?

controlflow avatar May 11 '20 12:05 controlflow

Ideally we should. I'd expect from the Heap Allocation plugin to show me a difference between async code that uses ValueTask in right (= non-allocating) and wrong (= allocating) ways.

ForNeVeR avatar May 12 '20 16:05 ForNeVeR