[pypy-issue] [issue733] bz2 decompression is very slow

Jonas H. tracker at bugs.pypy.org
Mon May 30 21:53:14 CEST 2011

New submission from Jonas H. <jonas at lophus.org>:

Compared to CPython 2.7, PyPy 1.5 (from the Arch Linux repositories) seems to be 
~5 times slower on bz2 decompression. Using this script:

from bz2 import BZ2File

with BZ2File(sys.argv[1]) as f:
    while True:
        if not f.read(8*1024):

to decompress the PyPy lib-python/ directory (60M compressed) takes about 5 
seconds on CPython and 20s on PyPy 1.5.

messages: 2569
nosy: jonash, pypy-issue
priority: bug
release: 1.5
status: unread
title: bz2 decompression is very slow

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list