[issue4074] Building a list of tuples has non-linear performance
Antoine Pitrou
report at bugs.python.org
Wed Dec 17 16:00:35 CET 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
This new patch adds another improvement where tuples can be "optimized".
Optimized means that tuples which don't contain any GC-tracked object
become themselves untracked. Since tuples are immutable this
optimization is valid, and since it is common to store lots of tuples as
very simple containers of atomic objects this can be an interesting
optimization.
Added file: http://bugs.python.org/file12378/gctrigger2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4074>
_______________________________________
More information about the Python-bugs-list
mailing list