# HG changeset patch # User Matthew Wild # Date 1274930968 -3600 # Node ID b8af42b7ddf8f60807e707cbae6abc1006c303f2 # Parent e80882a6af57c4b2ff089c282141d87da73f81f2 README: Add gzip diff -r e80882a6af57 -r b8af42b7ddf8 README --- a/README Thu May 27 04:01:36 2010 +0100 +++ b/README Thu May 27 04:29:28 2010 +0100 @@ -39,6 +39,15 @@ #### --uglify Enable the uglification filter. Default is to not uglify. +### Gzip +Gzip, or rather the DEFLATE algorithm, is extremely good at compressing text-based data, including scripts. Using +this extension compresses the squished code, and adds some runtime decompression code. This decompression code adds +a little bit of time to the loading of the script, and adds 4K to the size of the generated code, but the overall +savings are usually well worth it. + +#### --gzip +Compress the generated code with gzip. Requires the gzip command-line utility (for compression only). + ### Compile Squish can compile the resulting file to Lua bytecode. This is experimental at this stage (you may get better results with luac right now), however it's a work in progress. Compiling to bytecode can actually increase the size of