Files.copy does userspace copies but FileChannel uses sendfile

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 12 16:39:59 UTC 2016


On 12/10/2016 17:30, Brian Burkhalter wrote:

> It seems as if this is a good candidate for some JMH testing from the 
> Java layer.
Yes  although you also have to measure the copy when the source isn't in 
the file system cache so that means dropping caches between copies.

-Alan


More information about the nio-dev mailing list