title: Java read huge file ( ~100GB ) efficiently
body: <p>I would like to read a huge binary file ( ~100GB ) efficiently in Java.  I have to process each line of it . The line processing will be in separate threads. I don't want to load the whole file into memory. Does reading in chunks work? What will be the optimum buffer size? Any formula for that?</p>