]> granicus.if.org Git - python/commit
Issue #4688: Add a heuristic so that tuples and dicts containing only
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 23 Mar 2009 18:41:45 +0000 (18:41 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 23 Mar 2009 18:41:45 +0000 (18:41 +0000)
commitf8387af2620b2e02ceac856e08786429a913adb5
tree28d9ca7a2f538e80fc9d6b00a22cea40b9941a33
parente5b78563b6f394e69d87ee68cc82c173c95dfa0b
Issue #4688: Add a heuristic so that tuples and dicts containing only
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
on long-running programs, depending on their particular use of datatypes.

(trivia: this makes the "binary_trees" benchmark from the Computer Language
Shootout 40% faster)
Doc/library/gc.rst
Include/dictobject.h
Include/objimpl.h
Include/tupleobject.h
Lib/test/test_dict.py
Lib/test/test_gc.py
Lib/test/test_tuple.py
Misc/NEWS
Modules/gcmodule.c
Objects/dictobject.c
Objects/tupleobject.c