[issue20642] Enhance deepcopy-ing for tuples

2014-05-03 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This was a nice patch.
Thanks.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20642] Enhance deepcopy-ing for tuples

2014-05-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0df3004581fe by Benjamin Peterson in branch 'default':
improve idioms (closes #20642)
http://hg.python.org/cpython/rev/0df3004581fe

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20642] Enhance deepcopy-ing for tuples

2014-04-27 Thread Claudiu.Popa

Claudiu.Popa added the comment:

Ping? The change is clear, has the same semantics and its a little bit faster.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20642] Enhance deepcopy-ing for tuples

2014-02-16 Thread Claudiu.Popa

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(100))" -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(100))" -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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com