[New-bugs-announce] [issue16441] range usage in gzip module leads to excessive memory usage.

Chris Withers report at bugs.python.org
Thu Nov 8 16:26:23 CET 2012


New submission from Chris Withers:

gzip.py uses range instead of xrange in two places.
This results in excessive memory usage when opening large .gz files.
I actually bumped into this using tarfile.

Am I right in thinking that range basically *is* xrange in 3.x? If so, this bug applies only to 2.6 and 2.7.

----------
assignee: cjw296
components: Library (Lib)
messages: 175176
nosy: cjw296
priority: normal
severity: normal
stage: needs patch
status: open
title: range usage in gzip module leads to excessive memory usage.
type: resource usage
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16441>
_______________________________________


More information about the New-bugs-announce mailing list