[issue4688] GC optimization: don't track simple tuples and dicts
Antoine Pitrou
report at bugs.python.org
Fri Dec 19 00:43:58 CET 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
Hello again,
> Still, I think this patch does too much code duplication. There should
> be only a single function that does the optional untracking; this then
> gets called from multiple places.
The point was to avoid slowing down the critical path of tuple creation
in the most common cases. If it is considered too hackish, then I agree
the other patch (tuple+dictopts-alt.patch) should be considered instead.
By the way, perhaps pybench should grow a GC test (e.g. derived from
Greg's script). What do you think?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4688>
_______________________________________
More information about the Python-bugs-list
mailing list