Module object_pool

Source

Structs§

ObjectPool
Thread-safe object pool for reusing expensive-to-create objects
PooledObject
A pooled object that returns to the pool when dropped
PooledVector
RAII wrapper for automatic return to pool
ResettablePool
Pool for resettable objects
ThreadLocalPool
Thread-local object pool for single-threaded performance
ThreadLocalPooledObject
Thread-local pooled object
VectorPool
Specialized vector pool for chess engine operations
VectorPoolManager
Global vector pool manager

Traits§

Resettable
Trait for resettable objects (objects that can be reused)

Functions§

clear_vector_pools
Clear all thread-local vector pools (useful for testing and cleanup)
create_hashmap_pool
Create a hash map pool
create_move_pool
Create a move pool
get_vector
Get a vector from the appropriate thread-local pool
get_vector_pool_stats
Get statistics about thread-local vector pools
get_zeroed_vector
Get a zeroed vector from the thread-local pool
return_vector
Return a vector to the appropriate thread-local pool

Type Aliases§

HashMapPool
Pool for hash maps
MovePool
Pool for chess move vectors