pixelherodev commented on PR #322:
URL: https://github.com/apache/arrow-go/pull/322#issuecomment-3564466434

   > It sounds like the best option that doesn't break anything for anyone, 
while still getting at least most of the benefits, is to add a build flag to 
switch from retain/release to AddCleanup, and then to move the cleanup logic 
into the Allocators, so that anyone using the GoAllocator has no additional 
runtime overhead for memory management?
   
   How to best disable retain/release is another interesting question. We could 
move every single copy of the Retain/Release implementation into their own 
files with the build tag, but that's kinda gross IMO, even if we just have it 
as one per package.
   
   Might be best to have a single implementation of retain/release and 
refcounting, and then just embed that as a substructure wherever needed - 
which, actually, is probably a good change to make _on its own anyways_, so 
I'll start by sending in a PR with that I think


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