On 21/11/2013 20:42, Dan Xu wrote:
Hi Alan,

When looking at the FileChannel.map() method, it seems that it will not write "e" 4 billion times. Instead, it only extends the file size to testSize+10. It uses ftruncate() in linux and uses SetFilePointer() in Windows, which causes the file offset different on different platforms. But the performance should be good. On windows, this test runs for around 0.14 seconds in jprt machines. Thanks!
Okay, what you have is fine and in time we will see whether it reliable.

-Alan

Reply via email to