| Issue 610: | PATCHES: Two compiler optimizations | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
GWT Release: 1.3.1 Detailed description: There are three obfuscation optimization, which all together saves 14K for KitchenSink application and 12K for Mail. 1) Introducing one-letter names for parameters and local vars 2) Replacing duplicated string literals by constants 3) Replacing fully-qualified class names by <packageNameLiteral> + <classNameLiteral> Workaround if you have one: Patch and one new class are attached. Links to the relevant GWT Developer Forum posts: http://groups-beta.google.com/group/Google-Web-Toolkit-Contributors/browse_frm/thread/bea6070061455fab |
||||||||||||||
,
Jan 18, 2007
(No comment was entered for this change.)
Summary: PATCHES: Two compiler optimizations
|
|||||||||||||||
,
Jan 18, 2007
(No comment was entered for this change.)
Status: Accepted
Owner: gwt.team.scottb Labels: -Type-Defect Type-Enhancement |
|||||||||||||||
,
Jan 19, 2007
(No comment was entered for this change.)
Labels: Milestone-1_4_RC
|
|||||||||||||||
,
Feb 02, 2007
Hi Alex, These optimizations really save a lot! That being said, I had a number of problems with this patch from a purely logistical standpoint. First, the patch file should have been created from inside of trunk/ rather than outside of trunk. Second, I'm not sure what version of svn you're using, but I had to hand-edit the patch file to a different format to get it to accept the patch file. Third, none of the code appears to follow the GWT style guidelines outlined in Making GWT Better. Finally, I think item #1 should have been split into a separate patch from items #2 and #3. Without making any functional changes, I am attaching two new patch files that comply with the above. I'll address the actual content in a follow up. |
|||||||||||||||
,
Feb 02, 2007
(No comment was entered for this change.)
Status: Started
|
|||||||||||||||
,
Feb 12, 2007
Pri-Crit as a blocker for 1.4.
Labels: -Priority-Medium Priority-Critical
|
|||||||||||||||
,
Feb 14, 2007
(No comment was entered for this change.)
Labels: Category-Compiler
|
|||||||||||||||
,
Feb 22, 2007
A massive change (refactor) based on the ideas in the obfuscation patch is currently submitted for review. http://google-web-toolkit.googlecode.com/svn/changes/scottb/jsname-refactor-r430/ |
|||||||||||||||
,
Feb 26, 2007
The obfuscation change was committed as r482. A specific change to merge package names is in progress. A general change for merging string literals will not be considered for this release. Please enter a separate issue for that, as this one will be closed out. |
|||||||||||||||
,
Feb 27, 2007
The package name optimization was committed as r491. I'm marking this bug as Fixed given that we're not doing string merging globally right now. If you think this is still important, please enter another issue. Thanks! These optimizations have REALLY saved a TON of code size! Keep up the good ideas.
Status: FixedNotReleased
|
|||||||||||||||
,
May 29, 2007
Changing to Fixed status with GWT 1.4 RC release
Status: Fixed
|
|||||||||||||||
|
,
Apr 28, 2008
Owner: scottb
|
|||||||||||||||
|
|
|||||||||||||||