[Red5devs] Pooled or heap ByteBuffers (svn r3265)?
mabrek
mabrek at gmail.com
Wed Oct 22 01:06:40 PDT 2008
MINA 1.1.x provides PooledByteBufferAllocator (Default) and
SimpleByteBufferAllocator. Since 2.0 they decided to remove
PooledByteBufferAllocator (see
http://mina.apache.org/changes-between-2x-and-1x.html for
explanation). Currently they recommend SimpleByteBufferAllocator for
better performance in 1.1.x (see
http://mina.apache.org/quick-start-guide.html). It allocates new
ByteBuffer every time so there is no need to release them, just make
sure there is no reference to allow GC them.
We have three calls to ByteBuffer.setAllocator(new
SimpleByteBufferAllocator()) : Standalone, RTMPMinaTransport,
MRTMPMinaTransport. Since it's static, one call during server startup
(Standalone or Bootstrap) is enough.
More information about the Red5devs
mailing list