Skip to main content

MAX_INITIAL_ALLOCATION

Constant MAX_INITIAL_ALLOCATION 

Source
const MAX_INITIAL_ALLOCATION: usize = 1024;
Expand description

The largest number of items that memory is reserved for before any of them is read.

A peer chooses a message’s counts, and a short message can claim the largest count. So a vector only grows past this as its items arrive, like the vectors that zebra-chain reads.