On May 7, 2007, at 12:20 AM, Brigham Stevens wrote:
I am using nonpooled heap buffers in my server.
I was wondering if I could hang on to, and re-use the ByteBuffer passed into
decode...

yup!

Then the app logic can do what it needs with the decoded message, and when
it comes time to forwarding the message it would just use the cached
buffered version of the message instead of pushing it through the encoder again. I know MINA won't send ByteBuffers through the encoder. Would this work, or should I make my own ByteBuffer and copy the message into it? Just
trying to save a little on allocations...

Off the top of my head, I can't think of a reason as to why this would not work

-pete


--
[EMAIL PROTECTED] - http://fotap.org/~osi



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to