larray
larray copied to clipboard
Large off-heap arrays and mmap files for Scala and Java
There is a race condition in the mmap allocator memory management. Following sequence can happen: 1. Memory in address X is allocated. X is put into allocatedMemoryReferences 2. Memory in...
Long-based indexes has some performance overhead if no need exists to use buffers more than 2GB. We should provide LArray interface for int-based indexes. The naming of this interface would...
hello,This is my code ``` public static void main(String[] args) throws IOException { MMapBuffer mMapBuffer = new MMapBuffer(new File("f:/down/test.data"), 1L, 2 * 1024 * 1024 * 1024L, MMapMode.READ_WRITE); mMapBuffer.putByte(0, (byte)...
There are a few unit tests that are basic benchmarks. These would work best with a framework like JMH. [This plugin](https://github.com/ktoso/sbt-jmh) is mostly all you need. Also, if you're not...
I was thinking it would be handy if I could either wrap an `LBufferAPI` into a `SeekableByteChannel` instance or similar. For instance, I may be handed a direct `ByteBuffer` from...
Hello, Thank you very much for Larray, it has worked perfectly so far. I would like to ask if it would be possible to expose the madvise API to the...
Expose Unsafe.compareAndSwap operation
Here is a brief sketch of a new LArray memory layout: | header (8 bytes) | (raw memory contents ... ) | Header describes a memory type (malloc, mmap, NUMA,...
Write JNI functions to access memory