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


   > memory allocation counts (I am still trying to find a way of doing this in 
Rust)
   
   Just FTR, in C++ we have a global function that returns the number of 
currently Arrow-allocated bytes. This helps us write crude resource allocation 
tests (here through the Python wrapper `pyarrow.get_total_allocated_bytes`):
   
https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_cffi.py#L116-L131
   
   Another possibility would be to use the callback facility on your `Bytes` 
object to check that the destructor was called at some point.
   


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


Reply via email to