Hi all, I think the topic of 'GWT 1.5 compilation' taking a lot of time has been discussed enough and a fix is anticipated (may be as part of GWT 1.6 as per some other thread here). But i had to revive this topic as i am in critical situation now, which i wanted to share with you.
In short, I am unable to compile my project which has 4000-4500 source files, in GWT 1.4.10 anymore (I get OutOfMemoryError) even when i set the -Xmx to 1600M, since that is the maximum that is allowed in my windows machine (without the /3GB switch) and also limiting the output to IE and Mozilla and single language support. Compiling with GWT 1.5.1 has its own problems (see the last paragraph). Has anyone developed an application of similar size and facing the same problems? Any help is much appreciated. To explain fully, my project has so many files because of the nature of the project that it allows the user to dynamically design screens using a drag-and-drop wizard that was developed using GWT. After the screen information has been saved, a separate build script runs as part of application build/deployment process to generate GWT source files for the screens that have been designed. So the application has anywhere near ~900 screens and therefore as much 4000-4500 source files and still growing. I believe we recently hit the threshold of the maximum memory limit of GWT compiler due to the amount of java files we have so i cannot anymore compile in GWT 1.4 (Our machines are 2GB/Windows XP and we always use -Xmx1600m when compiling). In attempt to solve this compilation error, I made some subtle optimizations including removing usage of Inner classes in my generated files and removing unused imports and unused variables in the generated source code. I was still unable to compile in GWT 1.4. To solve this i attempted to migrate to GWT 1.5 (I had a failed migration earlier when we had just 3000 files, which i believe because of lot of inner classes usage and unused imports. See here http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d6241e1ab8ff18ed/5686b7b9e7c57743). But now I have two major problems to highlight and seek your help here, #1. The compilation time. It takes roughly *7 hours* (yes you read it correctly) to build my application. But the application now compiles properly in GWT 1.5. #2. The Javascript footprint(size) is 15MB, which is unacceptable for me. Any ideas on optimizing compilation time(i have exhausted -Xmx, limiting browser and limiting language support) and javascript footprint (My application has a single entry point and provides the user with a menu bar which loads different screens in to the panel as requested. So as much as 100-200 different screens are loaded in to the main panel from the menu) is much appreciated. I can upload the application to the Google developers if requested for (after verifying with my company's privacy laws). Please help me here. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
