summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-28 19:17:54 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-28 19:17:54 (GMT)
commitb22b94886dc71ddc11c7dd748c2bb0a47113f5b8 (patch)
tree03c22133c6c9ab29aaf38a0563b5217cd4b15359
parent41eb08616c78602b1c26982e25aa217358bbe536 (diff)
downloadcpython-b22b94886dc71ddc11c7dd748c2bb0a47113f5b8.zip
cpython-b22b94886dc71ddc11c7dd748c2bb0a47113f5b8.tar.gz
cpython-b22b94886dc71ddc11c7dd748c2bb0a47113f5b8.tar.bz2
Fix a typo and be more specific
-rw-r--r--Doc/whatsnew/2.7.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst
index e035eb0..9148743 100644
--- a/Doc/whatsnew/2.7.rst
+++ b/Doc/whatsnew/2.7.rst
@@ -132,9 +132,13 @@ A few performance enhancements have been added:
* 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 brings
- down the cost of full garbage collections, since it decreases the number of
- objects to be considered and traversed by the collector.
+ 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`.)