[pypy-issue] [issue734] bz2 seek rewinds unnecessarily

Gontran 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

----------
assignedto: Gontran
files: bz2_seek.patch
messages: 2577
nosy: pypy-issue
priority: bug
release: 1.5.1
status: in-progress
title: bz2 seek rewinds unnecessarily

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue734>
________________________________________


More information about the pypy-issue mailing list