From: Antoine Pitrou Date: Sat, 28 Mar 2009 19:10:13 +0000 (+0000) Subject: Publicize the GC untracking optimization X-Git-Tag: v2.7a1~1775 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c18f6b023df77b227e70d09cb2ac6323eeccea14;p=python Publicize the GC untracking optimization --- diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index e44a42b353..e035eb0b69 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`.) + .. ======================================================================