Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
awesome-dot-net-performance
A curated list of awesome .NET Performance books, courses, trainings, conference talks, blogs and most inspiring open source contributors. Inspired by awesome-... stuff.
Well, and my point is it all depends on the point of view. It's obvious that in a typical application nanoseconds does not matter. And it is also obvious this code is not for everyday programming. So, while for you it is a teensy, tiny slice of time, for someone else it can on a hot path where nanoseconds accumulate to a noticeable difference. I'm not suspecting #1or #2 where added because they look fancy.
Yes, but not only. It is a trick used for creating union types for structs - `Unsafe.SkipInit(out this);` satisfies compiler to not initialize all fields: https://github.com/dotnet/winforms/blob/d46ad2e8dc76248739d9ae22b28b399a6a6b299e/src/System.Windows.Forms.Primitives/src/Interop/Interop.ARGB.cs
Well, this is huge topic. I do it almost as a full-time job, so many sources and my own invesitgations. https://github.com/adamsitnik/awesome-dot-net-performance is a good starting place.