Bug 801910 - Enable Obfusicated (OBF) GWT output for reduced application size
Enable Obfusicated (OBF) GWT output for reduced application size
Status: CLOSED CURRENTRELEASE
Product: RHQ Project
Classification: Other
Component: Core UI (Show other bugs)
unspecified
All All
urgent Severity unspecified (vote)
: ---
: RHQ 4.4.0
Assigned To: Mike Thompson
Mike Foley
:
Depends On:
Blocks: rhq-uxd
  Show dependency treegraph
 
Reported: 2012-03-09 14:52 EST by Mike Thompson
Modified: 2013-09-01 05:58 EDT (History)
2 users (show)

See Also:
Fixed In Version: 4.4.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-01 05:58:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mike Thompson 2012-03-09 14:52:23 EST
Description of problem:

The current application setting for GWT compiles is "DETAILED" which produces a verbose version of the application javascript. Switching to OBF style will produce much more optimized code shrinking variable and method names as well as stripping out any unused code. It will make the application snappier as the amount of javascript needed to parse and take of memory will decrease substantially.





GWT style compile flag : Uncompressed (Mb) : Compressed (Mb) 
DETAILED     29.28  1.9  
OBF            2.8  0.685  

The reduced applicaiton size will take up much memory in the browser and also save on startup time as it is less javascript text to parse as well as reducing the amount of javascript to compress and uncompress on the server. A 2Mb piece of javascript will compress much faster than a 29Mb piece.



It is unknown what impact on the Sahi UI tests. We might need to build one version of the application for testing and one for production deployment (or all the tests might still run normally).




To Fix this:

We just need to set the gwt compiler option to OBF:

 -style                  Script output style: OBF[USCATED], PRETTY, or DETAILED (defaults to OBF)
Comment 1 Charles Crouch 2012-03-09 15:34:37 EST
Can't hurt to try it, its a simple change to revert.
Comment 2 Mike Thompson 2012-03-09 17:27:56 EST
I have changed the flag to OBF. This should speed things up considerably as the
size is now 675k.

We should pay particular attention to the Sahi testing now to make sure it
didn't break anything there.


Commit ID: e639401baf7a453b06b336aa95de955596ee12e1
Comment 3 Heiko W. Rupp 2013-09-01 05:58:10 EDT
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.

Note You need to log in before you can comment on or make changes to this bug.