Improving perf of FileChannel.transferTo() on Windows
Martin Sawicki (MS OPEN TECH)
marcins at microsoft.com
Wed Oct 15 00:35:19 UTC 2014
Hello
We're proposing an improvement to the OpenJDK which markedly improves the performance of the FileChannel.transferTo API when running on Windows.
We have the code figured out and tested internally. Our webrev patch is available here:
https://openjdkcontrib.blob.core.windows.net/transferto/webrev-20140918.zip
The crux of the change is a Windows implementation of transferTo() that uses the Win32 TransmitFile function to do the copy on a shorter code path in the kernel.
As for activating this optimization, we're proposing the conservative approach of keeping it off by default and adding a command line argument to activate it:
-Dwindows.enableFastFileTransfer=true | false
(IMHO though, it'd be great to eventually just have it on by default).
We'd appreciate a review and acceptance of this improvement.
Best regards
Martin Sawicki (and Kirk Shoop, and Valeriy Kopylov)
Microsoft Open Technologies, Inc.
A subsidiary of Microsoft Corp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20141015/44640fe8/attachment-0001.html>
More information about the nio-dev
mailing list