你的位置: 码友网首页 / 资讯源列表 / Improving logging performance with source generators: Exploring .NET Core 6 - Part 8

关于[Improving logging performance with source generators: Exploring .NET Core 6 - Part 8]的摘要:

In this post I look at the new LoggerMessage source generator, showing how and when to use it. I start by showing the existing ways to use ILogger, pitfalls to watch out for, and approaches to improve performance. I then show how the source generator simplifies this. We look at the code it generates, and do some simple benchmarks to see the performance benefits this brings.

原文地址: https://andrewlock.net/exploring-dotnet-6-part-8-improving-logging-performance-with-source-generators/

收录时间: 2021-11-03 浏览量: 1775 分类: .NET Core

| 0 收藏 | 0