How to INCREASE C# Performance using SPAN



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: https://automationmission.com
LinkedIn: https://www.linkedin.com/in/nickproud/
Twitter: https://twitter.com/nickproud

#dotnet #csharp #softwareengineer

Comments are closed.