An Introduction to Optimising Code Using Span

added by DotNetKicks
2/25/2019 5:09:26 PM

2 Kicks, 350 Views

This post continues my series about writing high-performance C# code. In this post, we'll continue from the last two posts by introducing the Span type and refactor some existing code by converting it to a Span-based version. We'll use Benchmark.NET to compare the methods and validate whether our changes have improved the code.