Tuesday, June 23, 2015

Re: GWT Compile size for specific classes greatly increased

So its a bunch of model parsers generated from a Generated subclass...  Basically a bunch of this type of statements.

....
 77   JSONObject childObject= JsonUtil.getJsonObject(JsonUtil.getJsonAttributeValue(object,"enterButton"));
 78   if (childObject != null) {
 79   com.gadget.JsonDeserializer<com.gadget.model.ButtonModel> deserializer = null;
 80   String gadget=JsonUtil.getStringValue(childObject.get("gadget"));
 81   deserializer = MyMap.get(gadget, childObject);
 82   if (deserializer != null) {
 83   perentModel.setEnterButton((com.gadget.model.ButtonModel)deserializer.deserialize(childObject));
.....

The generated file sizes are the same in 2.5 and 2.7.  The classes implement an interface that just has one method for deserialize();

On Tuesday, June 23, 2015 at 12:49:17 PM UTC-7, Gilberto wrote:
Can you share some of those classes?

On Tuesday, June 23, 2015 at 4:36:41 PM UTC-3, Dustin Chesterman wrote:
Hello -

  We have a collection of classes that implement a simple interface with a generic method.  According to compile reports, all of these classes were about 10k compiled in GWT 2.5 and have ballooned to over 200k in 2.7.  What is the best way to go about debugging this issue?

Thanks
- Dustin

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment