Bug 801910

Summary: Enable Obfusicated (OBF) GWT output for reduced application size
Product: [Other] RHQ Project Reporter: Mike Thompson <mithomps>
Component: Core UIAssignee: Mike Thompson <mithomps>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: unspecifiedCC: hrupp, jshaughn
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: All   
OS: All   
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: ---
Bug Depends On:    
Bug Blocks: 735475    

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.