Hi 勇智,

On 6/19/07, 吴勇智 <[EMAIL PROTECTED]> wrote:
dear mina team, i have two question for you.
   1. what's the time for mina 2 release?

http://www.nabble.com/2.0-roadmap---tf3818229.html#a10847317

   2. In the page:
http://mina.apache.org/changes-between-2x-and-1x.html. At last, it
said "ByteBuffer Pooling Has Been Removed, and a Heap Buffer is the
Default Buffer Type" and i browse mina trunk-source code about
ByteBuffer, SimpleByteBufferAllocator
class. I found the SimpleByteBufferAllocator use inner class
SimpleByteBuffer wrap java.nio.ByteBuffer to implement
org.apache.mina.common.ByteBuffer. And in fact
SimpleByteBufferAllocator use java.nio.ByteBuffer.allocateDirect and
java.nio.ByteBuffer.allocate methods to create ByteBuffer. Is it mean
that java.nio.ByteBuffer can instead of
org.apache.mina.common.ByteBuffer if i don't need AutoExpand,
PutString? Beacuse i am writing a hight performance server
application, i want to make  the code simple and faster. so ........
^_^

You have to wrap the NIO ByteBuffer with the MINA ByteBuffer.
org.apache.mina.common.ByteBuffer provides wrap() method for such a
case.

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to