DatagramChannel performance issue
Martin Thompson
mjpt777 at gmail.com
Tue Aug 28 12:33:00 UTC 2018
On Tue, 28 Aug 2018 at 08:31, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> As regards implementation changes then I think start by eliminating the
> JNI calls from the receive implementation and move it all to java. Each
> DCI can have an area of memory (probably 18 bytes) for the native code
> to write the source address and port. The wrapper can create the
> InetAddress/InetSocketAddress. Once you get that far then you can
> evaluating if there is a need for any caching of InetAddress objects,
> maybe the existing one-entry cache can be removed, maybe it would be
> beneficial to have more caching. The benchmarks, along with other
> measurements, should be help evaluate.
I'll put together some benchmarks that can be used as a baseline.
More information about the nio-dev
mailing list