On May 6, 10:21 pm, John Nagle <na...@animats.com> wrote:
> On 5/4/2012 12:14 AM, Steve Howell wrote:
>
> > On May 3, 11:59 pm, Paul Rubin<no.em...@nospam.invalid>  wrote:
> >> Steve Howell<showel...@yahoo.com>  writes:
> >>>      compressor = zlib.compressobj()
> >>>      s = compressor.compress("foobar")
> >>>      s += compressor.flush(zlib.Z_SYNC_FLUSH)
>
> >>>      s_start = s
> >>>      compressor2 = compressor.copy()
>
>     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.
>

The actual strings that I'm compressing are much longer than six
characters. Obviously, "foobar" was just for example purposes.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to