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

trustin do-not-reply at jboss.com
Wed May 14 11:41:20 EDT 2008


"timfox" wrote : 2) Text messages. Currently text message bodies are encoded using UTF-8 with the encoding methods on the MINA IoBuffer class. This is slow (as mentioned in another thread).

One of my friends told me just writing a byte array generated by String.getBytes(enc) performs better.  YMMV though.  I'd prefer David's suggestion to use UTF-16 although it's not so efficient for ASCII strings.

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

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



More information about the jboss-dev-forums mailing list