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 intodecode...
yup!
Then the app logic can do what it needs with the decoded message, and whenit comes time to forwarding the message it would just use the cachedbuffered 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? Justtrying 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
smime.p7s
Description: S/MIME cryptographic signature
