143
147
out = self.compressor.flush(Z_SYNC_FLUSH)
145
149
self.bytes_list.append(out)
146
151
# TODO: We may want to cache total_len, as the 'sum' call seems to
147
152
# be showing up a bit on lsprof output
148
153
total_len = sum(map(len, self.bytes_list))