Skip to main content

DEFAULT_MAX_ALLOCATIONS

Constant DEFAULT_MAX_ALLOCATIONS 

Source
const DEFAULT_MAX_ALLOCATIONS: u32 = 4096;
Expand description

How many allocations a pool tracks unless the caller says otherwise.

The allocator’s own default (128 Ki nodes, roughly 3.5 MB of metadata) is sized for a general-purpose allocator; a pool holds one allocation per mesh, so it needs far fewer.