-
1. Re: Errai generated JavaScript size issue
cbrock Mar 18, 2013 12:24 PM (in response to eladhr83)What version of GWT and Errai are you using? Also, would you be able to share your SOYC report with us?
-
2. Re: Errai generated JavaScript size issue
eladhr83 Mar 20, 2013 4:53 AM (in response to cbrock)good morning mike.
GWT 2.5.0 ,, Errai - 2.2.0.Final
Ok - i geneated the SOYC report and even in the bits and bytes you see the diff .
the orignal GWT Project with (GWT MVP + Gin) size is - 500 KB
after integration with Errai - about 1500 KB.
after investigating the SOYC Report , lets take just one example ( java.util).
java.util->java.util.AbstractHashMap->java.util.AbstractHashMap::$$init() - 23 bytes
java.util->java.util.AbstractHashMap->java.util.AbstractHashMap::$$init() - 71 bytes
its seems like the most of the size diff is in same classes only
java.util.AbstractHashMap::$$init
java.util.AbstractHashMap::AbstractHashMap
java.util.HashMap::HashMap
java.util.logging.LogManager::LogManager
java.util.logging.LogManager::getLogManager
com.google.gwt.logging.impl.LoggerImplRegular::getLoggerHelper
java.util.logging.Logger::getLogger
com.google.gwt.logging.client.LogConfiguration$LogConfigurationImplRegular::configureClientSideLogging
com.google.gwt.logging.client.LogConfiguration::$onModuleLoad -
3. Re: Errai generated JavaScript size issue
csa Mar 22, 2013 11:04 AM (in response to eladhr83)Hi Elad,
In Errai 3.0, errai-ioc and errai-bus have been decoupled which will definitely make the JS smaller if you don't use both modules. Also, errai-jaxrs no longer depends on errai-ioc or errai-bus.
So, if you're willing to use 3.0-SNAPSHOT you should definitely see an improvement.
Cheers,
Christian