You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimized GWT removes dead code. The reflection cache contains call sites for all methods on all included types and this prevents dead code elimination for those types, leading to larger js files.
Details
A proof on my last game with method callsites suppressed from the odb cache only (see file size):
(Just removing the call-sites breaks the cache obviously but there might be some improvements to be had here).
Summary
Optimized GWT removes dead code. The reflection cache contains call sites for all methods on all included types and this prevents dead code elimination for those types, leading to larger js files.
Details
A proof on my last game with method callsites suppressed from the odb cache only (see file size):
(Just removing the call-sites breaks the cache obviously but there might be some improvements to be had here).
Compiled with:
Options
Solving this might yield an estimated ~10-20% size decrease of the final js.
Definitely underlines why having two caches is a bad idea.
The text was updated successfully, but these errors were encountered: