Где Runtime Async в .NET 11 экономит память, а где нет
In .NET 11 the familiar async/await mechanism is changing: control over suspending methods moves to the runtime, and the JIT compiler gains new optimization options. The article looks at how much this actually cuts allocations in real code, and why benchmark results sometimes contradict each other. Runtime Async is examined through benchmarks and compared against the classic implementation. The piece also sets out to identify which scenarios benefit and which do not.
В.NET 11 привычный механизм async/await меняется: управление приостановкой методов переходит к рантайму, а JIT получает новые возможности для оптимизации. Но насколько это снижает аллокации в реальном коде и почему результаты замеров иногда противоречат друг другу? Разбираем Runtime Async на примере бенчмарков, сравниваем результаты с классической реализацией и выясняем, в каких сценариях выигрыш действительно заметен. Изучить результаты тестов