[pypy-issue] [issue734] bz2 seek rewinds unnecessarily
tracker at bugs.pypy.org
Wed Jun 1 10:07:06 CEST 2011
New submission from Gontran <g2p.code+pypy at gmail.com>:
bz2 rewinds are costly, here is a fix to avoid them when seeking forward. This
makes tarfile.getmembers linear instead of quadratic, and much faster on large
files. pip installs suffered without this.
I haven't been able to translate pypy, so I'd be grateful for some testing.
Long-term, the cpython stdlib has a mostly-python implementation of bz2 that
could be interesting to reuse: http://hg.python.org/cpython/file/tip/Lib/bz2.py
title: bz2 seek rewinds unnecessarily
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue