You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/10/12 08:49:00 UTC

[GitHub] [arrow] pitrou commented on pull request #8401: ARROW-10109: [Rust] Add support to the C data interface for primitive types and utf8

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:
users@infra.apache.org