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%)



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5865 8db76d5a-ed1c-0410-87a9-c151d255dfc7
2 files changed