[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Optimisations: A couple of low hanging fruits going for

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed May 14 19:25:54 EDT 2008


Another low hanging fruit :-)

MessagingImpl::decode will aways change the size of the buffer, making the Message to be bigger than it needs to be when serializing or transporting:



MessageImpl::decode
  | {      
  | 
  | ...
  |       byte[] bytes = new byte[len];
  |       buffer.getBytes(bytes);
  |       body = new BufferWrapper(1024); // this should be len
  |       body.putBytes(bytes);      
  | 
  | ...
  | }



Another point also... Making ClientProducerIimpl to use nonBlocking on transacted sends, made those to be much slower on my computer. It is taking about 200 msgs/second against 2000 as it used to be when sending blocking.

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

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



More information about the jboss-dev-forums mailing list