Page 1 of 1

Example widget: ZLib-compression and decompression

Posted: 20 Aug 2009, 19:17
by Auswaschbar
Added example widget, which shows how to compress and decompress data using zlib in lua.

When it is useful: for sending chunks of data over the network, saving stuff to files
When it is not usefull: for small data chunks, minimum size for compression to be usefull is about 100 bytes for plain text

edit: does not work with 0.80.1, does work in master, will work in 0.80.1.1

Re: Example widget: ZLib-compression and decompression

Posted: 20 Aug 2009, 20:22
by lurker
I guess I was wrong about DEFLATE. It compresses blocks, not a stream. Are any compression methods easily available that use a streaming method? Can anyone find me a reference for zlib's streaming mode?