I don't know alot about how the GWT compiler works but I have an
application with two entry point modules that uses an ant build and I have
a question regarding the compiler's performance. The applications use
GwtQuery which generates a deprecation warning during the compilation.
When the ant build runs the GWT compiler twice, once for the first module
and then again for the second, it looks like the compiler builds GwtQuery
once for the first module and then reuses that when building the second
module. When the ant build runs the compiler once, passing in both modules
as arguments, it looks like it has to recompile GwtQuery when building the
second module. So why is it still about 40% slower to compile the second
module when running the compiler twice if it's reusing the cached GwtQuery
compilation?
Running the compiler twice, once for each module
gwtc:
[java] Compiling module [Module1]
[java] Scanning for additional dependencies:
jar:file:/C:/vendor/gwtquer
y/gwtquery-1.1.0.jar!/com/google/gwt/query/client/GQuery.java
[java] Adding '1' new generated units
[java] Validating newly compiled units
[java] [WARN] Warnings in
'generated://DD3935B08A743CB2881783EB
8D02B0C3/com/google/gwt/query/client/LazyGQueryImpl.java'
[java] [WARN] Line 1142: Referencing deprecated method
'com.
google.gwt.query.client.GQuery.load'
[java] See snapshot:
C:\Users\Steve\AppData\Local\Temp\com.g
oogle.gwt.query.client.LazyGQueryImpl768328142208574424.java
[java] Compiling 6 permutations
[java] [blah...]
[java] Compilation succeeded -- 106.753s
[java] Compiling module [Module2]
[java] Compiling 6 permutations
[java] [blah...]
[java] Compilation succeeded -- 85.493s
Running the compiler once with both modules
gwtc:
[java] Compiling module [Module1]
[java] Scanning for additional dependencies:
jar:file:/C:/vendor/gwtquer
y/gwtquery-1.1.0.jar!/com/google/gwt/query/client/GQuery.java
[java] Adding '1' new generated units
[java] Validating newly compiled units
[java] [WARN] Warnings in
'generated://DD3935B08A743CB2881783EB
8D02B0C3/com/google/gwt/query/client/LazyGQueryImpl.java'
[java] [WARN] Line 1142: Referencing deprecated method
'com.
google.gwt.query.client.GQuery.load'
[java] See snapshot:
C:\Users\Steve\AppData\Local\Temp\com.g
oogle.gwt.query.client.LazyGQueryImpl4098406001408158776.java
[java] Compiling 6 permutations
[java] [blah...]
[java] Compilation succeeded -- 107.996s
[java] Compiling module [Module2]
[java] Scanning for additional dependencies:
jar:file:/C:/GIS/mapss/trun
k/vendor/gwtquery/gwtquery-1.1.0.jar!/com/google/gwt/query/client/GQuery.java
[java] Adding '1' new generated units
[java] Validating newly compiled units
[java] [WARN] Warnings in
'generated://DD3935B08A743CB2881783EB
8D02B0C3/com/google/gwt/query/client/LazyGQueryImpl.java'
[java] [WARN] Line 1142: Referencing deprecated method
'com.
google.gwt.query.client.GQuery.load'
[java] See snapshot:
C:\Users\Steve\AppData\Local\Temp\com.g
oogle.gwt.query.client.LazyGQueryImpl6869051124393870311.java
[java] Compiling 6 permutations
[java] [blah...]
[java] Compilation succeeded -- 57.899s
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/fauT8h4rEBIJ.
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.