Currently, when function chunk.dump writes a chunk into the file, it writes the raw representation into a buffer data before compressing it and writing into the file. However, data is not necessary; we can compress on-the-fly into the compressed buffer directly without the need for data.
Currently, when function
chunk.dump
writes a chunk into the file, it writes the raw representation into a bufferdata
before compressing it and writing into the file. However,data
is not necessary; we can compress on-the-fly into thecompressed
buffer directly without the need fordata
.