List Info

Thread: - Re: Optimisations: A couple of




- Re: Optimisations: A couple of
country flaguser name
United States
2008-05-14 11:32:54
"trustin" wrote : 
  | 
  | for (int i = 0; i < str.length(); i ++) {
  |     buf.putChar(str.charAt(i));
  | }

Well... UTF-8 is just putting a sequence of bytes generated
from bitwise operations on the chars? So should be fast
right?

Maybe the overhead is due to the creation of the encoder
class etc, I don't really know I haven't profiled it yet...

Maybe we should just write our own encoding that writes
directly onto a SimpleString...

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

Reply to the post : http://www.jboss.com/index.
html?module=bb&op=posting&mode=reply&p=4150819
_______________________________________________
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 )