zlib deflate

zlib deflate data ?level?

This command takes the bytearray data and returns its raw-compressed version. The optional level gives the compression level, which may be any value from 0 (uncompressed) to 9 (maximally, most slowly compressed).