comparison mercurial/utils/compression.py @ 46122:84130fd74a22

revlog: support none compression revlog files had uncompressed revlog entries support since forever, but it wasn't selectable or exposed explicitly. It is occassionally useful for performance testing as it avoids the latency of zlib or zstd. It also has the nice side effect of providing a non-default compression engine out-of-the-box. Differential Revision: https://phab.mercurial-scm.org/D9572
author Joerg Sonnenberger <joerg@bec.de>
date Sun, 13 Dec 2020 00:19:03 +0100
parents 89a2afe31e82
children 471cd86c8eb4
comparison
equal deleted inserted replaced
46121:c000eff2c635 46122:84130fd74a22
615 # unless you are on a fast network, uncompressed payloads can easily 615 # unless you are on a fast network, uncompressed payloads can easily
616 # saturate your network pipe. 616 # saturate your network pipe.
617 def wireprotosupport(self): 617 def wireprotosupport(self):
618 return compewireprotosupport(b'none', 0, 10) 618 return compewireprotosupport(b'none', 0, 10)
619 619
620 # We don't implement revlogheader because it is handled specially 620 # revlog special cases the uncompressed case, but implementing
621 # in the revlog class. 621 # revlogheader allows forcing uncompressed storage.
622 def revlogheader(self):
623 return b'\0'
622 624
623 def compressstream(self, it, opts=None): 625 def compressstream(self, it, opts=None):
624 return it 626 return it
625 627
626 def decompressorreader(self, fh): 628 def decompressorreader(self, fh):