> On 20 Feb 2018, at 21:31, Simone Bordet <simone.bor...@gmail.com> wrote:
> 
> <snip>
> 
> This version has the advantage that guarantees that no other copy is
> done, not even by the implementation (hopefully, right Pavel ?), while
> with JDK 8 there may have been hidden copies to provide a full
> ByteBuffer.
> 


If by copies you mean allocating new buffers and feeling them with the same
contents, then you are right. No copies are made.
However there is a natural need for multiple passes over the buffers, both
being sent and received. These are unavoidable transformations performed by SSL
and WebSocket masking.

As for the WHOLE message, there's no way an implementation can provide a 
zero-copy
solution.

Thanks,
-Pavel

Reply via email to