R
Remon van Vliet
Hello,
I was wondering, is there a big advantage over using small direct
bytebuffers for the actual SocketChannel.read() and write() methods instead
of heap-allocated bytebuffers.
I'm working on a server and having a small direct buffer for the actual IO
is a bit of a pain. So, what are the advantages and does anyone have
practical experiences with the difference between the two? I understand that
directly allocated buffers can potentially be mapped to native buffers and
whatnot, but still...it's a bit of a hassle.
Remon
I was wondering, is there a big advantage over using small direct
bytebuffers for the actual SocketChannel.read() and write() methods instead
of heap-allocated bytebuffers.
I'm working on a server and having a small direct buffer for the actual IO
is a bit of a pain. So, what are the advantages and does anyone have
practical experiences with the difference between the two? I understand that
directly allocated buffers can potentially be mapped to native buffers and
whatnot, but still...it's a bit of a hassle.
Remon