Performance patch for AIX system api support of sun.nio.ch.FileChannelImpl.transferTo0()
littlee at linux.vnet.ibm.com
Tue Oct 18 21:46:56 PDT 2011
On 10/18/2011 01:48 PM, Deven wrote:
> Hi nio-devs,
> sun.nio.ch.FileChannelImpl.transferTo0() native method will take
> advantage of Linux/Solaris system snedfile() apis to improve the
> performance of
> FileChannel.transferTo(long position,long count,WritableByteChannel
> <http://download.oracle.com/javase/7/docs/api/java/nio/channels/WritableByteChannel.html> target).
> On AIX there is a similar system api called send_file() which will
> do the similar things Linux/Solaris sendfile() will do, however
> current transferTo0() dose not use it to optimize AIX performance.
> This patch add AIX send_file() into the transferTo0() native
> method, so AIX could also take advantage of AIX system api support for
> transferTo operation and will improve the performance of
> FileChannelImpl.transferTo() .
> The attached TransferToClient.java and TransferToServer.java is
> the performance test which can test the FileChannelImpl.transferTo()
> If there is anybody could review this patch and give your
> Best regards!
Can you help to make a webrev for other's review?
Just with a quick glance, your patch has some format issues. Please keep
to follow the code convention from
Are there any examples of the performance test cases?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev