Performance patch for AIX system api support of

Charles Lee littlee at
Tue Oct 18 21:46:56 PDT 2011

On 10/18/2011 01:48 PM, Deven wrote:
> Hi nio-devs,
> native method will take 
> advantage of Linux/Solaris system snedfile() apis to improve the 
> performance of 
> FileChannel.transferTo(long position,long count,WritableByteChannel 
> <> 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 and is 
> the performance test which can test the FileChannelImpl.transferTo() 
> performance.
>      If there is anybody could review this patch and give your 
> suggestion?
> Best regards!

Hi Deven,

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

Hi Alan,

Are there any examples of the performance test cases?

Yours Charles

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the nio-dev mailing list