Bug 801910 - Enable Obfusicated (OBF) GWT output for reduced application size
Summary: Enable Obfusicated (OBF) GWT output for reduced application size
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: unspecified
Hardware: All
OS: All
urgent
unspecified
Target Milestone: ---
: RHQ 4.4.0
Assignee: Mike Thompson
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: rhq-uxd
TreeView+ depends on / blocked
 
Reported: 2012-03-09 19:52 UTC by Mike Thompson
Modified: 2013-09-01 09:58 UTC (History)
2 users (show)

Fixed In Version: 4.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-01 09:58:10 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike Thompson 2012-03-09 19:52:23 UTC
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 20:34:37 UTC
Can't hurt to try it, its a simple change to revert.

Comment 2 Mike Thompson 2012-03-09 22:27:56 UTC
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 09:58:10 UTC
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.