[dev] Potential addition/learning for horde-js-compress.php

Chuck Hagenbuch chuck at horde.org
Tue Apr 24 12:36:06 UTC 2007


Quoting Michael M Slusarz <slusarz at horde.org>:

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

Cool, thanks for the analysis and adding it as a potential fallback.

-chuck


More information about the dev mailing list