Performance Improvements in .NET 11(devblogs.microsoft.com)
336 points by soheilpro 28 days ago | 104 comments
tl;dr: .NET 11 delivers another year of accumulated performance improvements across the JIT and runtime, with notable advances in deabstraction—including expanded escape analysis that eliminates more heap allocations for nullable boxing, enumerators, and generic virtual methods. The biggest architectural change is "runtime async," which shifts async/await state machine generation from the C# compiler to the JIT, enabling fused async call chains that skip intermediate Task allocations (3x faster in some cases) and dramatically cheaper exception propagation. Opt-in via a feature flag in .NET 11, with the goal of becoming default in .NET 12.
HN Discussion:
  • ↑Appreciation for the depth, quality, and technical writing of the post
  • ↑Enthusiasm for the runtime async change and ongoing .NET performance work
  • ↑Users report tangible speedups in their own projects from these improvements
  • ~Wish the article included application-level benchmarks showing cumulative gains
  • •Question about whether non-systems devs need to read the assembly snippets shown