[pypy-issue] [issue865] Struct.pack and unpack 3x and 6x slower than CPython

Carl Friedrich Bolz tracker at bugs.pypy.org
Wed Apr 23 17:43:08 CEST 2014

Carl Friedrich Bolz <cfbolz at gmx.de> added the comment:

This is mostly a property of the insanely long format strings for pack and
unpack. For human-sized format strings (e.g. struct.pack("iii", 1, 2, 3)) PyPy
is much faster than CPython, both for pack and unpack. Therefore I am closing
the issue.

If somebody is of the opinion that struct format strings are in practice
commonly thousands of characters long, please reopen it.

nosy: +cfbolz
status: chatting -> resolved

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

More information about the pypy-issue mailing list