Readers who have followed me for some time will know that I have developed a bit of a passion for performance improvements and avoiding allocations in critical code paths. Previous blog posts have touched on examples of using Span<T> as one mechanism to prevent allocations when parsing data and using ArrayPool to avoid array allocations […]
Tag: C#
Creating Strings with No Allocation Overhead Using String.Create Writing High-Performance C# and .NET Code: Part 4
In this post, I’ll continue my series about writing high-performance C# and .NET code. This time, I will focus on a new(ish) method available on the String type – String.Create. First introduced in .NET Core 2.1, this method is currently planned for inclusion as part of .NET Standard 2.1 once that is released. What Does […]
Motivations for Writing High-Performance C# Code Writing High-Performance C# and .NET Code: Part 1
This post marks the beginning of what I expect will be a fairly long series of performance related posts. I’ll use this post as of a table of contents for accessing those future posts as well as to begin the series by discussing my personal motivations for learning more about writing high-performance C# code. I’m […]