[pypy-issue] [issue767] copy.deepcopy is slower than cpython

Dario tracker at bugs.pypy.org
Tue Jun 28 17:13:54 CEST 2011

Dario <berdario at gmail.com> added the comment:

commit 7b1d0c454f8a (and the previous 2) has a change to try to improve the 
performance by avoiding to use id()

(I reverted the commit, since it's dubious that we may want to mantain a 
modified copy.py)

I tested this (on the script on the bottom of this page) after applying 
agaynor's patch, and it takes 5% less time with a list of 500k elements, and 10% 
less time with a 1M elements list

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

More information about the pypy-issue mailing list