Constant avalanche_types::subnet::rpc::database::batch::CAPACITY_REDUCTION_FACTOR
source · pub const CAPACITY_REDUCTION_FACTOR: usize = 2;
Expand description
The underlying array’s capacity will be reduced by a factor of CAPACITY_REDUCTION_FACTOR. Higher value for CapacityReductionFactor –> more aggressive array downsizing –> more memory allocations but less unnecessary data in the underlying array that can’t be garbage collected.