Swap should be better done native?
Martin Buchholz
martinrb at google.com
Thu Apr 1 00:35:10 PDT 2010
After looking a bit at the buffer implementation,
it seems like direct buffers optimize multibyte
operations like putInt using Unsafe.
Is this true?
If so, why can't non-direct buffers (HeapByteBuffers)
do that as well, by using the object-based versions
of Unsafe operations?
If we could make such an optimization for non-direct
buffers, it would be a huge performance gain for some
uses.
Martin
More information about the nio-discuss
mailing list