pitrou commented on pull request #12089:
URL: https://github.com/apache/arrow/pull/12089#issuecomment-1014730488


   I think there's a problem with this approach: `MemAllocation::PREALLOCATE` 
preallocates only fixed-width buffers, not variable-width buffers. So for 
example, for a string array, indices will be preallocated but not data.
   
   Besides, child buffers are never preallocated. So what happens is that you 
must check that preallocated buffers are not changed, but this doesn't prevent 
other buffers from being allocated 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]


Reply via email to