hg: nio/nio/jdk: First installation of potential updates for M4

Alan Bateman Alan.Bateman at Sun.COM
Wed May 27 11:36:40 PDT 2009


libman at terabit.com.au wrote:
> :
> Indeed, the update of filters library was quite quick.
> I switched to b101 - all tests work fine.
> I only noticed that overall performance on EchoTest slows down ~10%
> (compare with b99)
>   
I haven't observed this, which operating system is this? Do you have any 
recent jdk7 build (b58 or b59) to compare? If there is a regression I 
would like us to track it down so narrowing down the build would help.

> Will investigate more...  By the  chance, if you can this test
> on your machine, please let me know if numbers are same or less.
>
> I have added also a AsynchronousCoder
> {
>    public AsynchonrousCoder (AsynchronousChannel ch, Charset cs);
>
>    // read and decode
>    public Future<Integer> read (CharBuffer dst);
>    public <A> void read (CharBuffer dst,
>                          A attachment,
>                          CompletionHandler<Integer, super A> handler)
>
>    // encode and write
>    public Future<Integer> write (CharBuffer src);
>    public <A> void write(CharBuffer src,
>                          A attachment,
>                          CompletionHandler<Integer, super A> handler)
>
> }
>   
Interesting, do you invoke the handler's failed method for malformed or 
unmappable input?

-Alan.



More information about the nio-dev mailing list