Hi, 2016-11-01 22:56 GMT+01:00 Rasmus Villemoes <r...@rasmusvillemoes.dk>: > 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. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com