Reviewers: scottb, Lex, Description: Obfuscation Optimization Patch, incorporates two features: 1) The first character of an obfuscated identifier can be base-54 instead of base-32. This reduces output size by 0.5-1%. This patch originally came from an external contributor (Issue #2448)
2) Change JsScope to use LinkedHashMap instead of HashMap. This allows identifiers to be allocated obfuscated identifiers in the original order of their declaration, which produces a lot more common substrings in the obfuscated output which significantly improves gzip/deflate compression. Experimental Data using gzip -9 on cache.html files: Mail sample: 191614/197548 (3%) (with patch/without/% improved) Chronoscope: 1373800/1482204 (7.3%) Showcase: 1641005/1832098 (10.5%) Please review this at http://gwt-code-reviews.appspot.com/54810 Affected files: dev/core/src/com/google/gwt/dev/js/JsObfuscateNamer.java dev/core/src/com/google/gwt/dev/js/ast/JsScope.java dev/core/src/com/google/gwt/dev/util/collect/Maps.java --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
