Pooled Array Rental (BufferPoolManager): BufferPoolManager wraps ArrayPool<byte>.Shared with atomic rent/return counters and optional leak-detection diagnostics (BufferOptions.EnableBufferLeakDetection), delivering 0 B allocation across all payload sizes.
Reference-Counted Lease Safety (BufferLease): BufferLease provides a pooled, reference-counted (Retain() / Dispose()) rental wrapper (IBufferLease) that keeps rent/dispose cycles allocation-free (0 B) while preventing premature buffer returns across async boundaries.
Object Reusability: Reusing instances of complex structures (like session states, packet envelopes, and processing contexts) prevents Gen 0 GC thrashing.
Hybrid Fast-Path Architecture:
Thread-Local Cache: First-level lock-free lookup caches object instances in thread-local storage (ThreadLocalCache<T>) for ultra-low latency reuse on the same thread.
Type-Indexed Buckets: When thread-local slots are empty or full, retrieval falls back to an array-backed lookup using compiled type IDs (PoolType<T>.Id) to bypass slow hashing or generic dictionary lookups.
Reset Logic: To prevent state pollution across rentals, pooled objects implement a reset interface (IPoolable) that automatically wipes data and prepares the instance for reuse upon its return to the pool.
Type to search across all 203 Nalix documentation pages.