For the .NET runtime, .NET 10 Preview 4 expands the JIT compiler’s escape analysis abilities to model references to objects from struct fields. The JIT performs escape analysis to determine if an object can outlive its parent method; if not, the JIT can allocate the object on the stack, removing the overhead of placing and tracking an object on the heap. Preview 4 also lets developers can collect runtime diagnostic information from Blazor WebAssembly apps, including performance profiles, memory dumps, and runtime metrics.
Also in .NET 10 Preview 4, the Blazor WebAssembly Standalone app template has been updated to enable preloading of state framework assets, include a generated JavaScript import map. And developers can use the new InvokeNewAsync
and GetValueAsync
/SetValueAsync
methods to call JavaScript constructors and properties from .NET.
.NET 10 Preview 4 follows Preview 3 from April 10, Preview 2 from March 18, and Preview 1 from February 25. The general production release of .NET 10 is expected in November. Other new features and improvements in .NET 10 Preview 4 include: