Skip to content

Commit c8db0e8

Browse files
authored
GH-109975: Copyedit 3.13 What's New: Remove references to the incremental GC (#124947)
1 parent 7ecaf21 commit c8db0e8

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -498,30 +498,6 @@ are not tier 3 supported platforms, but will have best-effort support.
498498
.. seealso:: :pep:`730`, :pep:`738`
499499

500500

501-
.. _whatsnew313-incremental-gc:
502-
503-
Incremental garbage collection
504-
------------------------------
505-
506-
The cycle garbage collector is now incremental.
507-
This means that maximum pause times are reduced
508-
by an order of magnitude or more for larger heaps.
509-
510-
There are now only two generations: young and old.
511-
When :func:`gc.collect` is not called directly, the
512-
GC is invoked a little less frequently. When invoked, it
513-
collects the young generation and an increment of the
514-
old generation, instead of collecting one or more generations.
515-
516-
The behavior of :func:`!gc.collect` changes slightly:
517-
518-
* ``gc.collect(1)``: Performs an increment of garbage collection,
519-
rather than collecting generation 1.
520-
* Other calls to :func:`!gc.collect` are unchanged.
521-
522-
(Contributed by Mark Shannon in :gh:`108362`.)
523-
524-
525501
Other Language Changes
526502
======================
527503

@@ -918,36 +894,6 @@ fractions
918894
(Contributed by Mark Dickinson in :gh:`111320`.)
919895

920896

921-
gc
922-
--
923-
924-
The cyclic garbage collector is now incremental,
925-
which changes the meaning of the results of
926-
:meth:`~gc.get_threshold` and :meth:`~gc.set_threshold`
927-
as well as :meth:`~gc.get_count` and :meth:`~gc.get_stats`.
928-
929-
* For backwards compatibility, :meth:`~gc.get_threshold` continues to return
930-
a three-item tuple.
931-
The first value is the threshold for young collections, as before;
932-
the second value determines the rate at which the old collection is scanned
933-
(the default is 10, and higher values mean that the old collection
934-
is scanned more slowly).
935-
The third value is meaningless and is always zero.
936-
937-
* :meth:`~gc.set_threshold` ignores any items after the second.
938-
939-
* :meth:`~gc.get_count` and :meth:`~gc.get_stats` continue to return
940-
the same format of results.
941-
The only difference is that instead of the results referring to
942-
the young, aging and old generations,
943-
the results refer to the young generation
944-
and the aging and collecting spaces of the old generation.
945-
946-
In summary, code that attempted to manipulate the behavior of the cycle GC
947-
may not work exactly as intended, but it is very unlikely to be harmful.
948-
All other code will work just fine.
949-
950-
951897
glob
952898
----
953899

@@ -1512,11 +1458,6 @@ zipimport
15121458
Optimizations
15131459
=============
15141460

1515-
* The new :ref:`incremental garbage collector <whatsnew313-incremental-gc>`
1516-
means that maximum pause times are reduced
1517-
by an order of magnitude or more for larger heaps.
1518-
(Contributed by Mark Shannon in :gh:`108362`.)
1519-
15201461
* Several standard library modules have had
15211462
their import times significantly improved.
15221463
For example, the import time of the :mod:`typing` module
@@ -2629,13 +2570,6 @@ Changes in the Python API
26292570
Wrap it in :func:`staticmethod` if you want to preserve the old behavior.
26302571
(Contributed by Serhiy Storchaka in :gh:`121027`.)
26312572

2632-
* The :ref:`garbage collector is now incremental <whatsnew313-incremental-gc>`,
2633-
which means that the behavior of :func:`gc.collect` changes slightly:
2634-
2635-
* ``gc.collect(1)``: Performs an increment of garbage collection,
2636-
rather than collecting generation 1.
2637-
* Other calls to :func:`!gc.collect` are unchanged.
2638-
26392573
* An :exc:`OSError` is now raised by :func:`getpass.getuser`
26402574
for any failure to retrieve a username,
26412575
instead of :exc:`ImportError` on non-Unix platforms

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy