[dev] Potential addition/learning for horde-js-compress.php
Michael M Slusarz
slusarz at horde.org
Tue Apr 24 10:39:17 UTC 2007
Quoting Chuck Hagenbuch <chuck at horde.org>:
> Mostly for Michael-
>
> Not sure if our js compression routine can learn something (or maybe
> avoid the java dependency?) using http://dean.edwards.name/packer/.
Added the PHP class as an option for compression. However, using an
algorithim that simply shrinks the current code via name
substitutions/whitespace cleaning, the PHP class is not as good as our
current method - with the subtracted benefit that the rhino parser
also does JS syntax checking during compression. The more advanced
compression methods in the packer class require regex substitutions
every time the javascript code is loaded, which is a performance hit
that isn't necessary (a JS shrunk file coupled with gzip compression
on the server should provide more than adequate compression for our
purposes).
michael
More information about the dev
mailing list