diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-28 19:20:09 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-28 19:20:09 (GMT) |
commit | 9d81def047320ff7b50a472e23fc1a1e8e7c9f57 (patch) | |
tree | ddd3ef3789438e21e0e0ec2b85cbd6a07e671983 /Doc | |
parent | 7a51e589a45ce997d7abefb1d1c7760b2dd159f1 (diff) | |
download | cpython-9d81def047320ff7b50a472e23fc1a1e8e7c9f57.zip cpython-9d81def047320ff7b50a472e23fc1a1e8e7c9f57.tar.gz cpython-9d81def047320ff7b50a472e23fc1a1e8e7c9f57.tar.bz2 |
Merged revisions 70647,70652 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70647 | antoine.pitrou | 2009-03-28 20:10:13 +0100 (sam., 28 mars 2009) | 3 lines
Publicize the GC untracking optimization
........
r70652 | antoine.pitrou | 2009-03-28 20:17:54 +0100 (sam., 28 mars 2009) | 3 lines
Fix a typo and be more specific
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/2.7.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index e44a42b..9148743 100644 --- a/Doc/whatsnew/2.7.rst +++ b/Doc/whatsnew/2.7.rst @@ -129,6 +129,18 @@ A few performance enhancements have been added: (Suggested by Martin von Loewis and implemented by Antoine Pitrou; :issue:`4074`.) +* The garbage collector tries to avoid tracking simple containers which + can't be part of a cycle. As of now, this is true for tuples and dicts + containing atomic types (such as ints, strings, etc.). Transitively, a dict + containing tuples of atomic types won't be tracked either. This helps bring + down the individual cost of each garbage collection, since it decreases the + number of objects to be considered and traversed by the collector. + + To help diagnosing this optimization, a new function in the :mod:`gc` + module, :func:`is_tracked`, returns True if a given instance is tracked + by the garbage collector, False otherwise. + (Contributed by Antoine Pitrou; :issue:`4688`.) + .. ====================================================================== |