300
301
compressor = zlib.compressobj(zlib.Z_DEFAULT_COMPRESSION)
301
302
# Peak in this point is 1 fulltext, 1 compressed text, + zlib overhead
302
303
# (measured peak is maybe 30MB over the above...)
304
305
compressed_chunks.append(compressor.flush())
306
307
self._z_content_chunks = [c for c in compressed_chunks if c]