Expand description
Memory optimization utilities.
This module provides memory-efficient data structures and allocation patterns for high-performance nesting and packing operations.
§Features
- Object Pool: Reusable object allocation to reduce heap pressure
- Geometry Instancing: Shared vertex data for repeated geometries
- Scratch Buffer: Thread-local temporary storage
Structs§
- Clearing
Pool - Object pool that automatically clears returned objects.
- Geometry
Cache - A geometry instance cache for deduplication.
- Memory
Stats - Memory statistics for monitoring.
- Object
Pool - A simple object pool for reusing allocations.
- Scratch
Buffer - Thread-local scratch buffer for temporary allocations.
- Shared
Geometry - Shared geometry data for instancing.
Traits§
- Clearable
- A clearable trait for objects that can be reset for reuse.