##// END OF EJS Templates
util: drop write_content_size=True...
Gregory Szorc -
r37514:1765ed63 default
parent child Browse files
Show More
@@ -3566,11 +3566,11 b' class _zstdengine(compressionengine):'
3566
3566
3567 class zstdrevlogcompressor(object):
3567 class zstdrevlogcompressor(object):
3568 def __init__(self, zstd, level=3):
3568 def __init__(self, zstd, level=3):
3569 # Writing the content size adds a few bytes to the output. However,
3569 # TODO consider omitting frame magic to save 4 bytes.
3570 # it allows decompression to be more optimal since we can
3570 # This writes content sizes into the frame header. That is
3571 # pre-allocate a buffer to hold the result.
3571 # extra storage. But it allows a correct size memory allocation
3572 self._cctx = zstd.ZstdCompressor(level=level,
3572 # to hold the result.
3573 write_content_size=True)
3573 self._cctx = zstd.ZstdCompressor(level=level)
3574 self._dctx = zstd.ZstdDecompressor()
3574 self._dctx = zstd.ZstdDecompressor()
3575 self._compinsize = zstd.COMPRESSION_RECOMMENDED_INPUT_SIZE
3575 self._compinsize = zstd.COMPRESSION_RECOMMENDED_INPUT_SIZE
3576 self._decompinsize = zstd.DECOMPRESSION_RECOMMENDED_INPUT_SIZE
3576 self._decompinsize = zstd.DECOMPRESSION_RECOMMENDED_INPUT_SIZE
General Comments 0
You need to be logged in to leave comments. Login now