Рет қаралды 6,324
Span is a relatively new value type in C# that allows you to target a contiguous region of arbitrary memory. What does that mean?
Well, it means a lot of things, but perhaps mostly notably for .NET developers, it means improved performance when it comes to manipulating or viewing objects.
In this video, I give a simple introduction to Span as a .NET type, I talk about the potential for increased performance for string manipulation in particular, and then I use Benchmark.NET to get some benchmarking results for code that manipulates strings using 'StartsWith' and a Span of string.
My Blog: automationmission.com
LinkedIn: / nickproud
Twitter: / nickproud
#dotnet #csharp #softwareengineer