Dandandan commented on PR #9508: URL: https://github.com/apache/arrow-rs/pull/9508#issuecomment-4017377167
> The standard reservation strategy for `Vec` is powers of two, which plays nicer with allocators when you are allocating a lot of memory. If you start allocating exact sizes, then it is has to "slot" in an allocation with the rest of the system, and so you end up allocating more than that anyway. Ah good one, yeah that is true. Although `batch_size` is in practice always set to a power of 2 as well... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
