Relates :
|
|
Relates :
|
|
Relates :
|
On Unix the copy is implemented in sun.nio.fs.UnixCopyFile.copy() which calls a native method transfer(int,int,long) to perform the actual data copying. The copy is effected via a user-space buffer in a loop of read()-write() invocations. Instead of going via user-space buffers, the copy should be able to be done more efficiently using zero-copy as implemented by the Linux system call sendfile().
|