List Info

Thread: - Re: Optimisations: A couple of




- Re: Optimisations: A couple of
country flaguser name
United States
2008-05-14 18:25:54
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
_______________________________________________
jboss-dev-forums mailing list
jboss-dev-forumslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-dev-foru
ms

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )