Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b19
-
linux
Description
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().
Attachments
Issue Links
- relates to
-
JDK-8264744 (fs) Use file cloning in Linux version of Files::copy method
-
- Resolved
-
-
JDK-8266589 (fs) Improve performance of Files.copy() on macOS using copyfile(3)
-
- Resolved
-
-
JDK-8269074 (fs) Files.copy fails to copy from /proc on some linux kernel versions
-
- Resolved
-