Improving perf of FileChannel.transferTo() on Windows

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 15 07:46:24 UTC 2014


On 15/10/2014 01:35, Martin Sawicki (MS OPEN TECH) wrote:
> :<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.
>
>
There have been attempts in the past to use TransmitFile but they ran 
into a number of issues, I think it was mostly semantics differences 
compared to sendfile. It was a long time ago but I think one example was 
sending HTTP headers via write following by the HTTP body with 
transferTo. If I recall correctly then TransmitFile bypassed the socket 
buffer. Do you anything about that?

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20141015/34756348/attachment.html>


More information about the nio-dev mailing list