Span<T>, Memory<T> and Ref Structs in .NET Explained
Learn Span, ReadOnlySpan, Memory and ref structs in .NET: zero-copy slicing, stackalloc, ArrayPool, SearchValues, async buffers and C# 14 span conversions.
8 articles about Garbage Collection: in-depth .NET and AI guides, senior interview questions and AI news on DotNet AI Hub.
Learn Span, ReadOnlySpan, Memory and ref structs in .NET: zero-copy slicing, stackalloc, ArrayPool, SearchValues, async buffers and C# 14 span conversions.
How the .NET garbage collector works: generations, LOH and POH, regions, workstation vs server GC, DATAS, container limits, finalization and tuning.
How memory leaks happen in a garbage-collected runtime, the most common causes, and a step-by-step workflow to find and fix them with gcdump and SOS.
Practical high-performance .NET techniques: measure first, cut allocations, pick fast collections, vectorize hot loops and tune the GC in .NET 8 to 11.
Senior .NET interview questions on GC internals: generations, card tables, LOH/POH and regions, server vs workstation GC, DATAS, latency modes and containers.
Senior .NET interview questions on cutting allocations: ArrayPool, ObjectPool, RecyclableMemoryStream, string.Create, hidden boxing, closures and LINQ costs.
Architect-level interview questions on Kestrel tuning, async I/O, System.IO.Pipelines, pooling, backpressure, Server GC with DATAS and tail latency.
Lead-level .NET interview questions on diagnosing memory leaks: counters, gcdump, SOS dumpheap and gcroot, unmanaged leaks, fixes and regression monitoring.