Re: [Java] Best Practice to use/manage Allocator

2017-06-27 Thread Emilio Lahr-Vivaz
I'm also curious. For reference, I've been using a global RootAllocator instance shared among all my classes. For unit tests, I've been creating one per test to ensure that things are being closed correctly. Thanks, Emilio On 06/27/2017 08:15 AM, Li Jin wrote: Still wondering if anyone can g

Re: [Java] Best Practice to use/manage Allocator

2017-06-27 Thread Li Jin
Still wondering if anyone can give some guidance? On Thu, Jun 22, 2017 at 10:19 AM, Li Jin wrote: > Hello, > > I am writing some code that interacts with the Arrow Java library in > Apache Spark and trying to understand the best way to use/manage buffer > allocators. I am wondering: > > (1) Is b

[Java] Best Practice to use/manage Allocator

2017-06-22 Thread Li Jin
Hello, I am writing some code that interacts with the Arrow Java library in Apache Spark and trying to understand the best way to use/manage buffer allocators. I am wondering: (1) Is buffer allocator thread safe? (2) Should I create a root allocator (maybe one per jvm?) to allocate all memory? T