Skip to main content

MAX_INITIAL_ALLOCATION

Constant MAX_INITIAL_ALLOCATION 

Source
pub(crate) const MAX_INITIAL_ALLOCATION: usize = 1024;
Expand description

Initial-allocation cap for zcash_deserialize_external_count and the bytes path, zcash_deserialize_bytes_external_count.

1024 is large enough that honest messages amortize their growth to a few reallocations.