Mercurial > hg-stable
changeset 16557:9dba55369cd8 stable
changegroup: decompress GZ algorithm in larger chunks for better performance
author | Michael Tjørnemark <michael@tjornemark.dk> |
---|---|
date | Sun, 29 Apr 2012 20:58:50 +0200 |
parents | f9262456fb01 |
children | 038b389d80f5 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Sat Apr 28 23:01:31 2012 -0700 +++ b/mercurial/changegroup.py Sun Apr 29 20:58:50 2012 +0200 @@ -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):