
C# .NET Performance - Initialising Empty Array
When initialising an empty array in your codebase, there are two options you would choose from:
new T[0] or Array.Empty<t(). This benchmark is to compare the two options to see their performance statistics.
Benchmark
[Benchmark(Baseline = true)]
pub...
Read: https://blog.mith.dev/c-net-performance-initialising-empty-array
When initialising an empty array in your codebase, there are two options you would choose from:
new T[0] or Array.Empty<t(). This benchmark is to compare the two options to see their performance statistics.
Benchmark
[Benchmark(Baseline = true)]
pub...
Read: https://blog.mith.dev/c-net-performance-initialising-empty-array