New submission from Claudiu.Popa:

Hello!

Here's a patch for improving the performance of tuple deepcopy-ing.

Without patch:

# ./python -m timeit -s "import copy; a=tuple(range(1000000))" -p 
"copy.deepcopy(a)"
10 loops, best of 3: 1.45 sec per loop

With patch:

# ./python -m timeit -s "import copy; a=tuple(range(1000000))" -p 
"copy.deepcopy(a)"
10 loops, best of 3: 1.32 sec per loop

----------
components: Library (Lib)
files: copy.patch
keywords: patch
messages: 211362
nosy: Claudiu.Popa, alexandre.vassalotti
priority: normal
severity: normal
status: open
title: Enhance deepcopy-ing for tuples
type: performance
versions: Python 3.5
Added file: http://bugs.python.org/file34108/copy.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to