It's somewhat slow (as expected). To decompress
takes about 9 seconds with CRC-checking enabled (4 with LuaJIT 1.x) or
3 seconds with CRC checking disabled (2 with LuaJIT 1.x).
Possible reasons for this module include:
- for pedagogical reasons
- to benchmark Lua
- to bootstrap applications like LuaRocks/LuaDist that might not have a precompiled copy of gunzip, and
- because DEFLATE has been implemented in other languages too, including Python, Perl, and Lisp.
It should be robust and there are no known bugs. It successfully decompresses gzip files but there is currently no compressor implementation.
- digest.crc32lua - CRC-32 checksum implemented in pure Lua
- bit.numberlua - bitwise operations implemented in pure Lua as numbers (not required if using a native bitwise operation library)
- pythonic.optparse - command-line processing resembling the Python optparse module
David Manura. See COPYRIGHT file.