Closed Andrei-Pozolotin closed 8 years ago
Hi @Andrei-Pozolotin
LArray uses long-based indexes for getXXX(long index) so it has some overhead compared to the API that uses int indexes. I know this problem and have a plan to provide int-based API #42.
I am not sure what you are comparing between the two tests. One of the tests calls init() to create a slice without the last element of the mmapped region, while the other does not. And also your benchmark includes the costs of JVM warm-up, mmap open and synchronization, etc.
hi.
the following microbenchmark produces, while reading 700+ MB file, 30x slowdown compared to JDK 7:
code
using
on