News
Join strings using String.Join vs. StringBuilder.AppendJoin in C# When you’re joining strings, use StringBuilder.AppendJoin in lieu of String.Join for reduced allocations.
Let us now benchmark the performance of both approaches to splitting strings in C#. To do this, we’ll take advantage of an open source library called BenchmarkDotNet.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results