mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Publicize the GC untracking optimization
This commit is contained in:
parent
5adab304e3
commit
c18f6b023d
1 changed files with 8 additions and 0 deletions
|
@ -129,6 +129,14 @@ A few performance enhancements have been added:
|
||||||
(Suggested by Martin von Loewis and implemented by Antoine Pitrou;
|
(Suggested by Martin von Loewis and implemented by Antoine Pitrou;
|
||||||
:issue:`4074`.)
|
: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`.)
|
||||||
|
|
||||||
|
|
||||||
.. ======================================================================
|
.. ======================================================================
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue