Multiple leftover fragments with a tree of code split points?

101 views
Skip to first unread message

Ed

unread,
Jan 1, 2011, 8:15:29 AM1/1/11
to Google Web Toolkit
I am about to migrate 3 gwt app's to one gwt app. All gwt app's
contain code split points, and I want to connect them with 3 code
split points.

I am a bit concerned about the left over fragment. From the
documentation I understand that I only have one leftovers code
fragment, which isn't very ideal I think in my situation.

The code split points after migration:
main app
1 split point: login app
1a, 1b, 1c, .. split points in the login app.

2 split point: profile app
2a, 2b, 2c, .. split points in the profile app.

3 split point: declare app
3a, 3b, 3c, .. split points in the declare app.

I am afraid that my leftover code fragment becomes rather large, where
I would love to have several leftover fragments that belong only to
1), 2), or 3).
Is that possible? How does gwt deal with this?

From the documentation I read that code are put in the leftover code
fragment if it's not unique to one split point. Ok, I understand that
but in my case it's unique to the parent split point. Example: I have
leftover code that is used in 1a and 1b split points, but is unique to
1), so I would guess that 1) has his own "unique" leftover.

Can somebody please give some details on this, on how gwt deals with
these kind of nested split point situations?

Ed

unread,
Jan 3, 2011, 3:49:18 PM1/3/11
to Google Web Toolkit
Anybody of the Dev team has a bit of advice on this ?
Or might it be better to drop this in the contributor list?

John Patterson

unread,
Jul 24, 2011, 12:46:02 AM7/24/11
to google-we...@googlegroups.com
I'm having the same problem - the left overs fragment is growing and control should be more fine grained.  This is particularly important with multi page apps (c.f. app in one page) where each page must load the initial fragment, its exclusive fragment and the leftovers fragment.

I found this work that seems related:


but there is no activity on that project.

@Google: any work happening on smarter leftover fragment splitting?

Ed Bras

unread,
Jul 24, 2011, 8:09:36 AM7/24/11
to google-we...@googlegroups.com
Thanks  John,
I hope more people will share the same problems and vote for the issue.
I just opened an issue about this:
Please vote it. When enough people vote this issue, the GWT dev team will give it attention.

Ed

--
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/-/Pi6rPRBEl84J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages