No, I did not mean there's a bug but what I meant is that when Mina2 has to write a large message, it will split the message in small parts when writing to the socket whereas Netty tries to write the full message to the socket (as Mina3 from what you said). This may explain why Netty becomes slower for large messages like Mina3
Jeff On Sat, Jan 5, 2013 at 5:26 PM, Emmanuel Lécharny <elecha...@gmail.com>wrote: > Le 1/5/13 1:27 PM, Jeff MAURY a écrit : > > Regarding the message size, I noticed that Mina2 writes only a sub part > of > > the message > > Do you mean the full message don't get written ? I would be extremely > surprised if it were the case, and it would worth a JIRA and a fix... > > > (size is computed from the receive buffer size if I remember > > correctly) whereas Netty tries to write the buffer buffer to the socket. > So > > If you did the same in Mina3, it may explain why it is slow > I have to investigate what's goig on in MINA3. We can certainly improve > the performance here. > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > > -- Jeff MAURY "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury