GitHub user surister closed a discussion: Is there any advantage to preallocate memory with Builder::with_capacity?
Hi, I'm consuming async iterators that fetch data in row format and then transpose it to arrays with `ArrayBuilder`s, I know the count beforehand so I thought that I could decrease max memory usage by pre-allocating, but I cant: For example, I know I'm processing `14_996_513` rows: * With `Float64Builder::with_capacity(14_996_513)` ~`3259`MiB * With `Float64Builder::new()` ~`2496`MiB GitHub link: https://github.com/apache/arrow-rs/discussions/7927 ---- This is an automatically sent email for github@arrow.apache.org. To unsubscribe, please send an email to: github-unsubscr...@arrow.apache.org