I am having a big file (50-60GB)
.
I also have pretty nice machine (128GB RAM and 16 core)
.
Now, I want to read the entire file and do some operations. Please also note that the file is binary, so reading as string or as bytes doesn't matter
to me. My IO is very slow, so I thought of reading the entire file in BufferedReader's buffer.
But I am being let down by the buffered reader's constructor.
Now, I can have a maximum of 2G buffer
size. This will be very painful for me as I have to read from IO 30 times.
Seeing methods of BufferedReader, none seems exceed the 2G mark (even this read function)
Am I looking at the wrong class ?
Are there any other class in java which suit my requirement ?
My main requirement is that I can bear with the initial load time and I want to leverage the 128G memory.
Thanks