user@runtime:~/blog$ grep -l "memory" posts/*.md

memory

9 posts tagged with memory.

2026-05-12 12m

Escape Analysis in .NET 10: How the JIT Eliminates Heap Allocations Automatically

The .NET 10 JIT compiler can now prove that many objects never leave their parent method and allocate them on the stack instead of the heap, eliminating GC pressure without any code changes.

2025-09-29 4m

Struct Layout and Padding in .NET

Understand how the CLR lays out struct fields in memory and how padding affects performance and memory usage.

2025-09-25 4m

GC Generations and the Large Object Heap Explained

How .NET's generational garbage collector works, and why the Large Object Heap deserves special attention.

2025-09-18 3m

string.Create and String Performance in .NET

Build strings without intermediate allocations using string.Create and other low-allocation string techniques.

2025-09-08 4m

stackalloc and Stack Allocation in C#

Allocate small buffers on the stack with stackalloc to avoid heap allocations entirely.

2025-09-04 4m

ArrayPool<T> and Memory Pooling in .NET

Use ArrayPool<T> and MemoryPool<T> to rent and return buffers, drastically cutting array allocations in high-throughput code.

2025-09-01 4m

Object Pooling with ObjectPool<T> in .NET

Reduce GC pressure and allocation overhead by reusing objects with Microsoft.Extensions.ObjectPool.

2025-06-30 4m

Ref Structs in C#: Stack-Only Types for High Performance

Understanding ref structs, the stack-only value types that power Span<T> and enable zero-allocation programming in C#.

2025-06-12 4m

Value Types vs Reference Types in C#

Understanding the fundamental difference between stack-allocated value types and heap-allocated reference types, and how it affects your code's behaviour and performance.