##// END OF EJS Templates
changegroup: decompress GZ algorithm in larger chunks for better performance
Michael Tjørnemark -
r16557:9dba5536 stable
parent child Browse files
Show More
@@ -118,7 +118,7 b' def decompressor(fh, alg):'
118 elif alg == 'GZ':
118 elif alg == 'GZ':
119 def generator(f):
119 def generator(f):
120 zd = zlib.decompressobj()
120 zd = zlib.decompressobj()
121 for chunk in f:
121 for chunk in util.filechunkiter(f):
122 yield zd.decompress(chunk)
122 yield zd.decompress(chunk)
123 elif alg == 'BZ':
123 elif alg == 'BZ':
124 def generator(f):
124 def generator(f):
General Comments 0
You need to be logged in to leave comments. Login now