Microsoft Dev Blogs

Performance Improvements in ASP.NET Core 8

thumbnail

Here's a summary of the performance improvements in ASP.NET Core 8:

  1. Improved parsing of multi-span headers: The parsing of headers split across multiple spans has been optimized to avoid unnecessary allocations. This has resulted in an 18% performance improvement for multi-span headers and a 73% reduction in allocations.

  2. Native AOT support: In ASP.NET Core 8.0, the Native Ahead-of-Time (AOT) feature has been expanded to include more libraries and support for ASP.NET Core applications. This feature enables the trimmer to remove unused code during publishing, resulting in smaller app sizes and improved performance.

  3. Trimmed publishing with no warnings: In ASP.NET Core 8.0, trimming is now fully supported, and there are no more warnings when publishing a trimmed app. The size of the published app is smaller, thanks to better code annotation and detection of unused code by the linker.

Overall, these improvements in ASP.NET Core 8.0 result in better performance, reduced memory allocations, smaller app sizes, and more efficient code trimming during publishing.