Re: [Java] Large Memory Allocators (Taking a dependency on JNA?)

2020-01-19 Thread Fan Liya
Hi Jacques and Micah, Thanks for the fruitful discussion. It seems netty based allocator and unsafe based allocator have their specific advantages. Maybe we can implement both as independent allocators, to support different scenarios. This should not be difficult, as [1] has laid a solid ground

[jira] [Created] (ARROW-7614) [Python] Slow performance in test_parquet.py::test_set_data_page_size

2020-01-19 Thread Wes McKinney (Jira)
Wes McKinney created ARROW-7614: --- Summary: [Python] Slow performance in test_parquet.py::test_set_data_page_size Key: ARROW-7614 URL: https://issues.apache.org/jira/browse/ARROW-7614 Project: Apache

Re: [Java] Large Memory Allocators (Taking a dependency on JNA?)

2020-01-19 Thread Micah Kornfield
Hmm, somehow I missed those two alternatives, thanks for pointing them out. I agree that these are probably better than taking a new dependency. Of the two of them, it seems like using Unsafe directly might be better since it would also solve a the issue of setting special environment variables

Re: [Discuss][Rust] Policy regarding "unsafe"

2020-01-19 Thread paddy horan
I think we are all broadly thinking along the same lines. I would mention that I don't see "unsafe" as a problem that needs to be removed per-se, it has it's place especially in libraries that are lower level like Arrow. I do have a problem with the fact that "value" (which is safe) has a

Re: [Java] Large Memory Allocators (Taking a dependency on JNA?)

2020-01-19 Thread Jacques Nadeau
It seems like jna is overkill & unnecessary for simply allocating/freeing memory. A simple way to do this is either to use unsafe directly or call the existing netty unsafe facade directly. PlatformDependent.allocateMemory(long) PlatformDependent.freeMemory(long) Should be relatively