[issue4688] GC optimization: don't track simple tuples and dicts
report at bugs.python.org
Sat Mar 14 17:31:15 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
Here is a benchmark ripped from the Computer Language Shootout
Running "binary_trees.py 18" takes the following time:
-> without patch: 330s.
-> with patch: 201s. (40% speedup)
-> with GC disabled : 165s.
Running pybench --with-gc doesn't show any performance variation, which
seems to imply the overhead of the heuristic is negligible.
Added file: http://bugs.python.org/file13332/binary-trees.py
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list