GitHub user surister closed the discussion with a comment: Is there any 
advantage to preallocate memory with Builder::with_capacity?

Actually, the number of values I was pushing to the array builders were always 
the `allocated` +1 due to another issue, I guess that triggers new allocation. 
With the right allocation number I get better numbers by using `with_capacity` 
as expected.

GitHub link: 
https://github.com/apache/arrow-rs/discussions/7927#discussioncomment-13866693

----
This is an automatically sent email for github@arrow.apache.org.
To unsubscribe, please send an email to: github-unsubscr...@arrow.apache.org

Reply via email to