I've read something here.... http://sinnema313.wordpress.com/2008/11/16/performance-tuning-a-gwt-application/
That GWT StringBuffer / StringBuilder implementation is not very accurate... and, as 'GWT bytecode' is Javascript, I don't know which is the best method - it seems to be the old, demonized String s = "a" + "b" Oskar On 27 ene, 13:16, Adam T <[email protected]> wrote: > yep, I would say it is "horses for courses" - as the issue I linked to > ( Issue 945: Performance improvement for JS string appends in IE) > indicates, simple string + string is slow in IE over a certain number > of Strings - but as you see in your simple case it might not be worth > changing to somthing else. > > //Adam > > On 27 Jan, 12:45, Fred Janon <[email protected]> wrote: > > > I just tried StringBuilder and StringBuffer, they seem to perform the same, > > I doubt that in the JS environment there is a reason for a difference > > between the 2 since JS is single threaded. The huge difference between > > StringBuffer/Builder and a String concatenation is that the usual String "+" > > performs 2 to 4 times faster in IE6 and FF3 than StringBuffer/Builder in my > > simple case. So I will stick to the simple " " + some String + " ". > > > Thanks anyway, > > > Fred > > > On Tue, Jan 27, 2009 at 16:06, Adam T <[email protected]> wrote: > > > > Consider using StringBuilder: > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=945&q=st... > > > > //Adam > > > > On 27 Jan, 06:34, Fred Janon <[email protected]> wrote: > > > > Hi, > > > > > I have some code like this: > > > > > String name = " " + someString + " "; > > > > > Is there another faster way of doing that in GWT? StringBuffer, > > > > StringBuilder? > > > > > Thanks > > > > > Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
