# SmallBlockAllocator Calculator 1.0

This calculator is for validating init parameters for EA::Allocator::SmallBlockAllocator and for visualizing the affect they have (in terms of pools created and allocation overhead).
See SmallBlockAllocator.html for details on the allocator and explanation of the parameters. Enter parameters on the left and hit update to visualize the pools that will be created in the SBA based (mnCoreBlockSize and mnMinAlignment are the primary two that affect the pools).

#### Terms

Overhead: This is based on the core block overhead plus any space left over in a core block (due to allocations not fitting perfectly).
Max Unused space: This is worse-case scenario when a user requests an allocation that does not fall on the exact pool size. For example, with mnMinAlignment=8, when we request a 1 byte allocation we will have to fund it from the 8 byte pool leaving 7 bytes unused. Use mnMinAlignment=4 to mimize this value.

## Parameters:

mnCoreBlockSize:
mnInitCoreBlockCount:
mnGrowCoreBlockCount:
mnMinAlignment:
mnMaxAlignment:
mnMaxAllocSize:
kOptionMaxAllocWaste:
Size of Pointer: