stackalloc is a keyword that has existed since C# 1.0, yet was a little-used feature. Recently it has gotten significant attention thanks to the introduction of Span of T in .NET Core, largely because it offers significant performance improvements in the right circumstances. We'll be looking at stackalloc in-depth, not just to gain performance, but how it works, the sharp edges and security concerns that come with it, and how to avoid those concerns.
Ещё видео!