We're working on making it faster.

If you'd like to find out where it's spending its time (and perhaps provide
us another useful data point): update to trunk and add
-Dgwt.speedtracerlog="/path/to/myproject-speedtracer.html" to your JVM
arguments. Launch your app, maybe do a refresh or two. Install the Speed
Tracer Chrome 
Extensio<https://chrome.google.com/extensions/detail/ognampngfcbddbfemdapefohjiobgbdl>n
(and give it access to local file URIs in chrome://extensions). Open the
resulting trace file in chrome, click "Open Monitor" and check out the
visualization. You'll want to expand the initial timeline view. The most
interesting data is going to be the summary pie chart you get from clicking
on the Module Init row. Feel free to share screenshots of those summary pie
charts in this thread.


On Wed, Sep 15, 2010 at 5:26 PM, Niels <[email protected]> wrote:

> I have a bit of a problem with GWT Hosted mode taking an awful long
> time to launch my app - even just reloading the page (with the server
> running and no code changes) takes forever.
>
> The CPU is at 100% for a couple of minutes and as far as I can tell
> none of my code executes (it's deep in the belly of some GWT code).
> The few times I've managed to hit pause in the debugger, the offending
> thread shows the stack trace below (the finer details may vary, but
> it's always in getRootPanel):
>
> My HTML is dead simple - a single table with two cells, so it's not
> like there is a million IDs to look up, and I only call getRootPanel
> once at the very beginning. I have never had this issue with other GWT
> projects I've worked on, and can't for the life of me figure out
> what's different this time (in fact I have another entry point in the
> same project that works just fine).
>
> Anyone have any ideas?
>
> String.substring(int, int) line: not available
> String.subSequence(int, int) line: not available
> Pattern.split(CharSequence, int) line: not available
> String.split(String, int) line: not available
> String.split(String) line: not available
> PathPrefixSet.includesResource(String) line: 237
> ZipFileClassPathEntry.computeApplicableResources(TreeLogger,
> PathPrefixSet) line: 146
> ZipFileClassPathEntry.findApplicableResources(TreeLogger,
> PathPrefixSet) line: 95
> ResourceOracleImpl.refresh(TreeLogger) line: 351
> ModuleDef.getResourcesOracle() line: 324
> StandardGeneratorContext.getResourcesOracle() line: 386
> CachedGeneratorContext.getResourcesOracle() line: 66
> AbstractLocalizableImplCreator.generateConstantOrMessageClass(TreeLogger,
> GeneratorContext, GwtLocale, JClassType) line: 97
> LocalizableGenerator.generate(TreeLogger, GeneratorContext, String,
> String) line: 121
> LocaleInfoGenerator.generateOneLocale(TreeLogger, GeneratorContext,
> LocalizableGenerator, String, Map<String,Set<GwtLocale>>, GwtLocale)
> line: 309
> LocaleInfoGenerator.generateConstantsLookup(TreeLogger,
> GeneratorContext, SourceWriter, LocalizableGenerator, Set<GwtLocale>,
> GwtLocale, String) line: 259
> LocaleInfoGenerator.generate(TreeLogger, GeneratorContext, String)
> line: 226
> StandardGeneratorContext.runGenerator(TreeLogger, Class<Generator>,
> String) line: 418
> RuleGenerateWith.realize(TreeLogger, StandardGeneratorContext, String)
> line: 38
> StandardRebindOracle$Rebinder.tryRebind(TreeLogger, String) line: 108
> StandardRebindOracle$Rebinder.rebind(TreeLogger, String,
> ArtifactAcceptor) line: 54
> StandardRebindOracle.rebind(TreeLogger, String, ArtifactAcceptor)
> line: 154
> ShellModuleSpaceHost.rebind(TreeLogger, String) line: 119
> ModuleSpaceOOPHM(ModuleSpace).rebind(String) line: 531
> ModuleSpaceOOPHM(ModuleSpace).rebindAndCreate(String) line: 414
> GWTBridgeImpl.create(Class<?>) line: 39
> GWT.create(Class<?>) line: 98
> LocaleInfo.<clinit>() line: 36
> RootPanel.get(String) line: 195
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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