Le 1/9/13 11:54 AM, Jeff MAURY a écrit :
> The problem I see if you choose to copy the user buffer into a DirectBuffer
> is that your memory consumption will double even if the DirectBuffer is not
> allocated on the heap, it may be problematic
It will double only the time necessary to copy the buffer. Then you can
discard the HeapBuffer...

All in all, this is currently what happens behind the curtain, as NIO
copies the HeapBuffer into a HeapBuffer. Doing it on our layer gives us
some control.

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to