Dandandan commented on pull request #9032: URL: https://github.com/apache/arrow/pull/9032#issuecomment-751841922
I am not sure what is causing the difference, I would expect it to be faster just as `from_slice prepared` is faster. The main difference is that initializing with capacity `0` uses `memory::allocate_aligned` while the other uses a few calls to `memory::reallocate`. I guess the first is (quite) a bit slower somehow? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
