alamb opened a new issue, #9057: URL: https://github.com/apache/arrow-datafusion/issues/9057
### Is your feature request related to a problem or challenge? As I noted on https://github.com/apache/arrow-datafusion/pull/9025 https://github.com/apache/arrow-datafusion/pull/9025/files#r1468533266 There is a custom allocation pattern in `VecAllocExt` that doubles the size of the allocation each time https://github.com/apache/arrow-datafusion/blob/d594e6257b34a5ad47112e26d41516aaeb19e6dd/datafusion/execution/src/memory_pool/proxy.rs#L39-L50 The actual rust stdlib also uses ths approach, but appears to handle overflows better : https://github.com/rust-lang/rust/blob/fb4bca04fa1bde2f7db1b31a59e066f7bebd7fc6/library/alloc/src/vec/mod.rs#L1918-L1929 https://github.com/rust-lang/rust/blob/fb4bca04fa1bde2f7db1b31a59e066f7bebd7fc6/library/alloc/src/raw_vec.rs#L405-L436 Thus I don't know why we have our own custom doubling implementation ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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]
