[issue4074] Building a list of tuples has non-linear performance

Antoine Pitrou report at bugs.python.org
Wed Dec 17 22:36:42 CET 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Now an additional patch which applies over the basic gctrigger4.patch.
It adds dict optimizations so that dicts with only atomic or immutable
elements are also untracked (they get tracked later when other trackable
elements are added).

Since dicts are often used as mappings of simple objects (int, str,
tuple) over other simple objects, this can be very useful.

Added file: http://bugs.python.org/file12383/dictopts.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4074>
_______________________________________


More information about the Python-bugs-list mailing list