DatagramChannel performance issue

Alan Bateman Alan.Bateman at oracle.com
Sun Sep 2 18:28:03 UTC 2018


On 02/09/2018 18:28, Martin Thompson wrote:
> :
>
> Having compared native C implementations I see a further saving of >
> 0.5μs over the single source case which suggests the JNI and
> DatagramChannel code has significant opportunities to be more
> efficient. Maybe JNI up calls are not one of the better design
> choices.
>
It shouldn't be too hard to eliminate the upcalls and construct the 
socket address at at the java level, it's just not something that has 
been brought up (at least not here or in JBS). Is this something that 
you want to work on?

As regards the benchmarks, can you package these up as and send an 
attachment? This is important because we can't accept contributions that 
don't come via OpenJDK infrastructure.

-Alan


More information about the nio-dev mailing list