etseidl commented on PR #10520:
URL: https://github.com/apache/arrow-rs/pull/10520#issuecomment-5481974680

   Could we perhaps only do the `shrink_to_fit` if the capacity outruns the len 
by more than 10% say? I'm not super familiar with how `shrink_to_fit` works 
with small deltas in size. Would be a shame to do an extra allocate and memcpy 
to save just a few bytes.


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