Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ impl Allocator {

let mut r = Self {
u8_vec: Vec::new(),
pair_vec: Vec::new(),
atom_vec: Vec::new(),
pair_vec: Vec::with_capacity(MAX_NUM_PAIRS),
atom_vec: Vec::with_capacity(MAX_NUM_ATOMS - 2),
// subtract 1 to compensate for the one() we used to allocate unconfitionally
heap_limit: heap_limit - 1,
// initialize this to 2 to behave as if we had allocated atoms for
Expand Down
Loading