🔥 Burn Fat Fast. Discover How! 💪

C# 9 - Improving performance using the SkipLocalsInit attribut | .NET Developer

C# 9 - Improving performance using the SkipLocalsInit attribute

C# 9 brings lots of new language features. One of them is the ability to suppress emitting .locals init flag. This feature allows to improve the performance of a method by not zeroing the local variables before executing the method. Even if zeroing local has been improved in .NET 5, not doing it will still be faster.

#csharp #perf #performance

https://www.meziantou.net/csharp-9-improve-performance-using-skiplocalsinit.htm