Memory allocation strategies, Span<T>, and performance optimisation techniques for .NET.
High-Performance .NET
Optimising .NET code: Introduction
Explore techniques to boost .NET performance & memory efficiency, identify allocation sources, and optimize data handling.
Optimising .NET code: Hunting for allocations
Explore basic techniques for benchmarking and identifying allocation sources in code.
Optimising .NET code: Let's blame LINQ
Benchmark LINQ's real cost in hot-path .NET code using Advent of Code — for zero-allocation goals LINQ hurts, but for most workloads the overhead is negligible.
Optimising .NET code: Avoiding allocations using Span<T>
The Advent of Code optimisation series continues — applying Span<T> to string parsing to cut allocations and improve throughput without losing readability in C#.
Increasing performance via low memory allocation in C#
Explore techniques for high-performance, low-allocation code in Azure Functions using C#, including data streaming, list preallocation, and Span<T>.
ArrayPool vs MemoryPool—minimizing allocations in AIS.NET
How we diagnosed unexpected allocations in AIS.NET, comparing ArrayPool<T> vs MemoryPool<T> to hit zero-allocation per-message GC targets in a .NET parsing library.