Avoids potentially perfoming multiple reallocations when we know the total amount of memory we need beforehand.