pitrou opened a new issue, #35665:
URL: https://github.com/apache/arrow/issues/35665

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   `DeltaLengthByteArrayEncoder::Put` passes the total desired capacity 
(`encoded_size_`) to `BufferBuilder::Reserve`. However, 
`BufferBuilder::Reserve` expects the _additional_ desired capacity. This will 
therefore request much more memory than desired, and perhaps reallocate more 
often than expected.
   
   
https://github.com/apache/arrow/blob/3e4eaa917fa9b09a923d255adee520aa68a4e78c/cpp/src/parquet/encoding.cc#L2651-L2675
   
   
   ### Component(s)
   
   C++


-- 
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