class

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

TOTAL_SIZE = 1280000

Constructors

Instance methods

allocate

Allocate a block from the pool

Source
deallocate(ptr : Pointer(UInt8)) : Bool

Deallocate a block back to the pool

Source
health_check

Check pool health and integrity

Source
reset_stats

Reset pool statistics

Source
stats

Get current pool statistics

Source

Nested types