summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-03-28 19:10:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-03-28 19:10:13 (GMT)
commitc18f6b023df77b227e70d09cb2ac6323eeccea14 (patch)
treea5730f466591af68503f3b20b1af9c2cbfbd651b
parent5adab304e38efd7132847f47dd932dfd0f2742f6 (diff)
downloadcpython-c18f6b023df77b227e70d09cb2ac6323eeccea14.zip
cpython-c18f6b023df77b227e70d09cb2ac6323eeccea14.tar.gz
cpython-c18f6b023df77b227e70d09cb2ac6323eeccea14.tar.bz2
Publicize the GC untracking optimization
-rw-r--r--Doc/whatsnew/2.7.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst
index e44a42b..e035eb0 100644
--- a/Doc/whatsnew/2.7.rst
+++ b/Doc/whatsnew/2.7.rst
@@ -129,6 +129,14 @@ 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 brings
+ down the cost of full garbage collections, since it decreases the number of
+ objects to be considered and traversed by the collector.
+ (Contributed by Antoine Pitrou; :issue:`4688`.)
+
.. ======================================================================