speed up batch append by reserving std vector.