r/programming • u/Happycodeine • Jan 04 '19
Using Java to Read Really, Really Large Files
https://medium.com/@paigen11/a6f8a3f44649
7
Upvotes
r/programming • u/Happycodeine • Jan 04 '19
View all comments
6
u/Pandalicious Jan 04 '19
Something else to try would be to parallelize the reading of the file across a few threads. Split up the file into equal sized chunks based on file offset, then hand each chunk to a thread and have each thread do mostly the same data processing logic already in the post, and then combine the results once all the threads are done. Basically a map/reduce approach.