zhztheplayer commented on pull request #7030:
URL: https://github.com/apache/arrow/pull/7030#issuecomment-654004147


   @jacques-n 
   
   I think we have several choices: we can try implement a c++ memory pool 
which is backed by a Java Allocator, actually I have a PoC branch for that: 
https://github.com/zhztheplayer/arrow-1/tree/ARROW-7808-wip-bridged-allocator.
   
   Or we can continue hacking Java API to reserve direct memory after buffer is 
registered. The reservation should happen inside Netty API because Netty has 
its own direct memory counter: 
https://github.com/netty/netty/blob/cbe238a95bab238455e3ff1849d450a9836f39ef/common/src/main/java/io/netty/util/internal/PlatformDependent.java#L749-L766
   
   Which one do you suggest or maybe there's a better one than both? 


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