This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author villemoes
Recipients villemoes
Date 2016-11-03.23:11:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478214696.15.0.845599612142.issue28607@psf.upfronthosting.co.za>
In-reply-to
Content
This is mostly an RFC patch. It compiles and passes the test suite. A somewhat silly microbenchmark such as

./python -m timeit -s 'import copy; x = dict([(str(x), x) for x in range(10000)]);'  'copy.deepcopy(x)'

runs about 30x faster. In the (2.7 only) application which motivated this, the part of its initialization that does a lot of deepcopying drops from 11s to 3s. That it's so much less is presumably because the application holds on to the deepcopies, so there's much more allocation going on than in the microbenchmark, but I haven't investigated thoroughly. In any case, a 3.5x speedup is also nice.
History
Date User Action Args
2016-11-03 23:11:36villemoessetrecipients: + villemoes
2016-11-03 23:11:36villemoessetmessageid: <1478214696.15.0.845599612142.issue28607@psf.upfronthosting.co.za>
2016-11-03 23:11:36villemoeslinkissue28607 messages
2016-11-03 23:11:36villemoescreate