Why use Memory Mapped File or MapppedByteBuffer in Java
6) Memory mapped IO is much faster than Stream IO in Java.
7) Memory used to load File is outside of Java heap and reside on shared memory which allow two different process to access File. By the way this depends upon, whether you are using direct or non-direct byte buffer.
8) Reading and writing on memory mapped file is done by operating system, so even if your Java Program crash after putting content into memory it will make to disk, until OS is fine.
Read full article from Why use Memory Mapped File or MapppedByteBuffer in Java
No comments:
Post a Comment