OK so I am looking at the *.cache.html that is produced in web mode,
and I see the strings buried deeply in there.
If there is no advantage to wrapping it in a singleton, that's even
better I will just keep doing what I'm doing.

Thanks all!



On Sep 24, 2:46 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote:
> Alex Rice schrieb:
>
> > Would it make sense to wrap MyConstants and MyMessages in a Java
> > singleton, or is GWT already optimizing this behind the scenes? I am
> > just imagining *lots* of strings getting re-created every time the
> > above type of code is called.
>
> In web mode the values of the property-file is compiled into the
> resulting HTML-file so a singleton has no effect. In hosted
> mode I think performance is a secondary issue, so the details
> of the implementation are not that interesting.
>
> Regards, Lothar
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to