[New-bugs-announce] [issue20642] Enhance deepcopy-ing for tuples
Claudiu.Popa
report at bugs.python.org
Sun Feb 16 22:46:07 CET 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue20642>
_______________________________________
More information about the New-bugs-announce
mailing list