Skip to content
Snippets Groups Projects
Commit 9dba5536 authored by Michael Tjørnemark's avatar Michael Tjørnemark
Browse files

changegroup: decompress GZ algorithm in larger chunks for better performance

parent f9262456
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@
elif alg == 'GZ':
def generator(f):
zd = zlib.decompressobj()
for chunk in f:
for chunk in util.filechunkiter(f):
yield zd.decompress(chunk)
elif alg == 'BZ':
def generator(f):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment