alamb commented on issue #3960:
URL: https://github.com/apache/arrow-rs/issues/3960#issuecomment-2380574096

   >  In our product we are using such custom allocators to track the memory 
usage of individual queries. I'd like to add a similarly named feature to 
arrow-rs which would generalize the Buffer::from_vec and 
MutableBuffer::from_vec functions.
   
   As @tustvold , @waynexia  and I are discovering on 
https://github.com/apache/arrow-rs/pull/6336, adding the APIs to Buffer and 
MutableBuffer is just the start -- to really achieve the usecase I think we 
would need to preserve the allocation information through all the various 
kernels / transformations that arrow-rs provides. 
   
   Also, @haohuaijin offers another potential usecase for this feature that is 
"accurately track total memory used by multiple arrow arrays that may share the 
same underlying Buffers (e.g. that were sliced, etc) in 
https://github.com/apache/arrow-rs/issues/6439


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