2016-11-01 22:56 GMT+01:00 Rasmus Villemoes firstname.lastname@example.org:
I'm using (and contributing to) an application which spends a significant part of its startup time calling copy.deepcopy, so I thought I'd try to write a C extension to speed this up.
Maybe you should consider another option: using copy.dpeecopy() is *bad* practice and should be avoided in almost all cases.
By design, copy.deepcopy() cannot be efficient.
For efficient code, you should redesign the application to use immutable structures for example.