arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emilio Lahr-Vivaz <elahrvi...@ccri.com>
Subject Re: [Java] Best Practice to use/manage Allocator
Date Tue, 27 Jun 2017 13:12:08 GMT
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 give some guidance?
>
> On Thu, Jun 22, 2017 at 10:19 AM, Li Jin <ice.xelloss@gmail.com> 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 buffer allocator thread safe?
>> (2) Should I create a root allocator (maybe one per jvm?) to allocate all
>> memory?
>>
>> Thanks,
>> Li
>>


Mime
View raw message