[issue4688] GC optimization: don't track simple tuples and dicts

Antoine Pitrou report at bugs.python.org
Thu Dec 18 10:36:32 CET 2008


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

> > I'd rather see that integrated into collection: e.g. when iterating over
> > survivors of a collection, check whether they can be untracked.
> 
> That's what I had tried at first, but it crashes.

To be clearer, I tried adding it to the tp_traverse method of tuples. I
could try to add it to the collection machinery in gcmodule.c instead.

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


More information about the Python-bugs-list mailing list