Closed kanekv closed 6 years ago
Well spotted! I actually just noticed that myself yesterday. The builder does grow as needed but yes it would be much more efficient to allocate the correct size. Would you like to create a PR to fix this? If not, I'll get to it soon.
@andygrove I'll do PR in a bit, thanks!
When creating ListBuilder with_capacity shouldn't we allocate 1 more element for offsets because we are pushing 0 element there immediately? @andygrove