You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by 吴勇智 <sr...@gmail.com> on 2007/06/18 18:04:35 UTC

hi mina team

dear mina team, i have two question for you.
   1. what's the time for mina 2 release?
   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 ........
^_^

           thank you

           i like apache
           i like mina

yongzhi.wu (吴勇智) from china
2007.6.18

Re: hi mina team

Posted by Trustin Lee <tr...@gmail.com>.
On 6/19/07, 吴勇智 <sr...@gmail.com> wrote:
>            thank you
>
>            i like apache
>            i like mina

Thank you for using Apache MINA and I am glad that you like Apache
projects and MINA. Please come back to us and give us feed back
whenever possible.  :)

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

Re: hi mina team

Posted by Trustin Lee <tr...@gmail.com>.
Hi 勇智,

On 6/19/07, 吴勇智 <sr...@gmail.com> 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