pub fn get_allocation(total_size: usize) -> AllocationResult
Expand description

Calculates optimal size for the hashtables based on total_size megabytes of available memory. For every PAWN_HASHTABLE_SIZE_FRACTION megabytes of transposition table, there will be 1 MB of pawn hashtable. Minimal size for each of them is 1 MB.