|
|
|
|
|
by gavinray
398 days ago
|
|
Please don't do this. Have the OS handle memory paging and buffering for you and then use Java's parallel algorithms to do concurrent processing. Create a "MappedByteBuffer" and mmap the file into memory. If the file is too large, use an "AsynchronousFileChannel" and asynchronously read + process segments of the buffer. |
|