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

Antoine Pitrou 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
(http://shootout.alioth.debian.org).
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>
<http://bugs.python.org/issue4688>
_______________________________________


More information about the Python-bugs-list mailing list