ritchie46 commented on issue #20:
URL: https://github.com/apache/arrow-rs/issues/20#issuecomment-831391324


   > I have spent my weekend on this problem
   
   Oof, I feel you. Working on this depressed me as well.
   
   > However, for this, we need to figure out a way to share a ref counted 
owned parent to all child arrays, so that when the last array is deallocated, 
we can release the parent and all associated child arrays on the same release. 
Together with this, we must consider all imported child ffi arrays as non-owned 
(e.g. refs), so that they do not call their own release on drop.
   
   Just thinking aloud here. Does it make sense to have some kind of marker 
(boolean) to indicate that an array is a child, and then make `Drop` a no-op 
when that marker is set and thereby eliminating step 3 (I assume that one is 
called in `drop`)?


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


Reply via email to