[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 12:10:00 EDT 2008


"timfox" wrote : "trustin" wrote :  I'd prefer David's suggestion to use UTF-16 although it's not so efficient for ASCII strings.
  | 
  | I'm not really sure I understand why UTF-16 is going to be more performant than UTF-8.

It's because it's as simple as writing a series of short integers?  It should look like this for example:

for (int i = 0; i < str.length(); i ++) {
    buf.putChar(str.charAt(i));
}

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

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



More information about the jboss-dev-forums mailing list