Improving Java IO Performance: Caching Data, When Appropriate
The sample code for this post can be found on GitHub.
The biggest bottleneck with I/O resources on the filesystem is the operating system, which controls access to the filesystem. Reading from, and writing to, the operating system, is much more expensive than storing data in memory, and that is the subject of this post: caching.