[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Added Netty transport to the trunk

timfox do-not-reply at jboss.com
Wed Aug 20 04:21:53 EDT 2008


"clebert.suconic at jboss.com" wrote : 
  | I have once played with changing how the buffers are created on JBM 2, and I'm sure we don't need auto-expanding buffers.
  | 
  | When we send a message, we could verify the getEncodeSize(), and pre-allocate the buffers at the exact size necessary to send them. It shouldn't be too difficult of doing that.
  | 
  | So, if you (Trustin) are having issues with the auto-expanding buffer, I'm pretty sure we can get rid of that. (At least on sending.. I'm not sure how the buffers are created on reading).

Yes indeed. Especially with Andy's latest changes there should be no need for auto expanding buffers.

Also we should be able to get rid of the cumulative protocol decoder stuff since we can just maintain a list of buffers, instead of munging them into one.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171433#4171433

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171433



More information about the jboss-dev-forums mailing list