Monday, September 23, 2013

Code Splitting with Factory usage?

I have a global Factory class to create instances.
I have a code split A and code split B that both use this Factory to create instance A1 that is only used in A and instance B1 that is only used in B.

Will code for object  A1 also end up in split point B, and code for object B1 als end up in split point A? Or is the GWT compiler smart enough to detect it's usage and ensure that code A1 is only present in split point A, and code B1 is only present in split point B?

I think so, but got my doubts, as the Factory is shared  between both split points, and it also shows up in the SOYC report.
- Ed

--
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/groups/opt_out.

No comments:

Post a Comment