optimizing-memory-allocation

Installation
SKILL.md

.NET Memory Efficiency, Zero Allocation

A guide for APIs that minimize GC pressure and enable high-performance memory management.

Quick Reference: See QUICKREF.md for essential patterns at a glance.

1. Core Concepts

  • .NET CLR GC Heap Memory Optimization
  • Understanding Stack allocation vs Heap allocation
  • Stack-only types through ref struct

2. Key APIs

API Purpose NuGet
Span<T>, Memory<T> Stack-based memory slicing BCL
ArrayPool<T>.Shared Reduce GC pressure through array reuse BCL
DefaultObjectPool<T> Object pooling Microsoft.Extensions.ObjectPool
Related skills

More from christian289/dotnet-with-claudecode

Installs
3
GitHub Stars
31
First Seen
Feb 28, 2026