JavaScript compression

34 views
Skip to first unread message

Neil Fraser

unread,
Oct 7, 2009, 6:04:32 PM10/7/09
to Diff Match Patch
There has been a change in the JavaScript compression used in DMP. Up
to now I have been using Packer:
http://dean.edwards.name/packer/
It's an excellent tool; one of the few I've seen which does not break
complicated JavaScript.

Today I've switched to using Google's own internal JSCompiler. It's
the same one that compresses the JavaScript for Gmail, Google Docs,
and other applications. The result is 15% smaller code (and thus a
faster download) than what Packer can produce. It also does type
checking so there's offers an added layer of security.

The downside is that Google's JSCompiler is not open source. Only
Google employees can compress JavaScript with it. So if you have to
make custom changes to DMP and then compress it, you'll have to
continue to use Packer.

The change of JavaScript compression and a change in the paths in SVN
to the Java files should be the only visible changes resulting from
moving DMP from a stand-alone project to one that's tied into the
Google build system. Due to the number of languages the
administrative overhead the release cycle was getting out of hand.
This cycle is now almost completely automated.
Reply all
Reply to author
Forward
0 new messages