DatagramChannel performance issue
Martin Thompson
mjpt777 at gmail.com
Mon Sep 3 06:53:24 UTC 2018
On Sun, 2 Sep 2018 at 20:48, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> If you are looking to contribute then you'll need to sign the SCA
> (details on the "Contributing" page [1]).
I'll have a look at how onerous the terms are then make a decision.
> For the specific issue then I think prototype changes to pass in an area
> of memory to the native method so it can populate it with the
> family/address/port. That will allow you to create the socket address in
> java and avoid the expensive upcalls from the JNI code. You'll need to
> be careful with the endianness but it should otherwise be straight forward.
Can you provide a link to an example of how to "pass in an area of
memory"? Is this different than the ByteBuffer example for the header
I provided?
> > Attached a stripped down version of the repo.
> Thanks, I will look at them.
Let me know if you'd like further refinements. While putting this
together it is clear there is a performance difference on the send vs
write calls which I'll separately quantify.
Martin...
More information about the nio-dev
mailing list