John Nagle <na...@animats.com> writes: > That's awful. There's no point in compressing six characters > with zlib. Zlib has a minimum overhead of 11 bytes. You just > made the data bigger.
This hack is about avoiding the initialization overhead--do you really get 11 bytes after every SYNC_FLUSH? I do remember with that SYNC_FLUSH trick, that I got good compression with a few hundred bytes of input (the records I was dealing with at the time). -- http://mail.python.org/mailman/listinfo/python-list