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

Justin Peel tracker at bugs.pypy.org
Thu Sep 8 05:59:57 CEST 2011

Justin Peel <peelpy at gmail.com> added the comment:

Yes, struct.pack and struct.unpack are known to be slower, especially with ints. 
Alex Gaynor's unroll-if-alt branch, which I think will be merged soon, should 
help out a great deal with this.

Reading and writing to files are also known to be slow because of the extra 
memory allocation and copying currently needed in order to make sure that the 
buffers used for the actual reading and writing of the files are not moved 
during copying by the garbage collector. Some ideas have been discussed to try 
to remedy this, but no one has actually worked to fix it yet to my knowledge.

nosy: +justinpeel
status: unread -> chatting

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

More information about the pypy-issue mailing list