CogUtil::AtomMemoryPool
Inherits Reference < Object
Memory pool for high-frequency atom allocations Reduces GC pressure and improves cache locality
Constants
BLOCK_SIZE = 128
POOL_SIZE = 10000
Pool configuration
Constructors
new
Instance methods
allocate
Allocate a block from the pool
deallocate(ptr : Pointer(UInt8)) : Bool
Deallocate a block back to the pool
health_check
Check pool health and integrity
reset_stats
Reset pool statistics
stats
Get current pool statistics