Paul Krill
Editor at Large

.NET 8 Preview 2 brings Blazor performance boosts

news
Mar 16, 20232 mins

ASP.NET Core improvements in the second .NET 8 preview include a high-performance Blazor component for displaying tabular data and partial JIT compilation for Blazor WebAssembly apps.

fire flames
Credit: Little Visuals

Microsoft’s second preview of its planned .NET 8 software development platform spruces up the ASP.NET Core web framework with a high-performance grid component and enhanced WebAssembly performance.

Microsoft .NET 8 Preview 2 was unveiled March 14 and is downloadable from dotnet.microsoft.com.

ASP.NET Core highlights in the new .NET 8 preview include a high-performance Blazor grid component, called QuickGrid, for displaying data in tabular form. It offers capabilities such as sorting, filtering, paging, and virtualization. Blazor is a framework for building client-side web UIs in C#.

.NET 8 Preview 2 also improves Blazor WebAssembly performance, using the “jiterpreter,” a new runtime feature in .NET that enables partial JIT (just in time) compilation support in the .NET IL interpreter. The jiterpreter optimizes the execution of interpreter bytecodes by replacing them with tiny bits of WebAssembly code.

.NET 8 Preview 2 follows .NET 8 Preview 1, unveiled February 21. Overall .NET 8 is set to bring new capabilities in areas such as Linux and JSON as well as full-stack web programming via ASP.NET Core. General availability of .NET 8 is planned for November.

Other ASP.NET Core improvements in .NET 8 Preview 2:

  • An analyzer is being introduced to provide a warning if developers attempt to resolve more than one parameter from the body in a minimal API. Multiple FromBody attributes are detected.
  • A new API, TryWriteAsync, in ProblemDetails supports more resilient integrations.
  • Performance of the named pipes transport has been improved.

Aside from ASP.NET Core improvements, .NET 8 Preview 2 includes the following new library features:

  • Extensions to the built-in validation attributes have been introduced in System.ComponentModel.DataAnnotations.
  • The RequiredAttribute now allows validating that structs do not equal their default values.
  • The LengthAttribute now can be used to set lower and upper bounds for strings or collections.
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author