The 30-Day .NET Challenge – Day 20: Task vs. ValueTask
Heap allocations aren’t entirely bad, but when an object is allocated on a heap, it contributes to the garbage collection cycles, which in turn reduces overall application performance. Introduction One approach to optimizing resource usage in async code is by using ValueTask syntax to minimize heap allocations, which in turn reduces pressure on garbage collection … Read more