Constant avalanche_types::subnet::rpc::database::batch::MAX_EXCESS_CAPACITY_FACTOR
source · pub const MAX_EXCESS_CAPACITY_FACTOR: usize = 4;
Expand description
If, when a batch is reset, the cap(batch)/len(batch) > MAX_EXCESS_CAPACITY_FACTOR, Higher value for MAX_EXCESS_CAPACITY_FACTOR –> less aggressive array downsizing –> less memory allocations but more unnecessary data in the underlying array that can’t be garbage collected.