Kaydet (Commit) b22b9488 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Fix a typo and be more specific

üst 41eb0861
...@@ -132,9 +132,13 @@ A few performance enhancements have been added: ...@@ -132,9 +132,13 @@ A few performance enhancements have been added:
* The garbage collector tries to avoid tracking simple containers which * 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 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 atomic types (such as ints, strings, etc.). Transitively, a dict
containing tuples of atomic types won't be tracked either. This helps brings containing tuples of atomic types won't be tracked either. This helps bring
down the cost of full garbage collections, since it decreases the number of down the individual cost of each garbage collection, since it decreases the
objects to be considered and traversed by the collector. 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`.) (Contributed by Antoine Pitrou; :issue:`4688`.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment