@@ -487,6 +487,8 @@ but the platform is not yet officially supported.
487
487
.. seealso :: :pep:`730`, :pep:`738`
488
488
489
489
490
+ .. _whatsnew313-incremental-gc :
491
+
490
492
Incremental garbage collection
491
493
------------------------------
492
494
@@ -1465,24 +1467,33 @@ zipimport
1465
1467
Optimizations
1466
1468
=============
1467
1469
1468
- * :func: `textwrap.indent ` is now ~30% faster than before for large input.
1470
+ * The new :ref: `incremental garbage collector <whatsnew313-incremental-gc >`
1471
+ means that maximum pause times are reduced
1472
+ by an order of magnitude or more for larger heaps.
1473
+ (Contributed by Mark Shannon in :gh: `108362 `.)
1474
+
1475
+ * Several standard library modules have had
1476
+ their import times significantly improved.
1477
+ For example, the import time of the :mod: `typing ` module
1478
+ has been reduced by around a third by removing dependencies
1479
+ on :mod: `re ` and :mod: `contextlib `.
1480
+ Other modules to enjoy import-time speedups include
1481
+ :mod: `email.utils `, :mod: `enum `, :mod: `functools `,
1482
+ :mod: `importlib.metadata `, and :mod: `threading `.
1483
+ (Contributed by Alex Waygood, Shantanu Jain, Adam Turner, Daniel Holla,
1484
+ and others in :gh: `109653 `.)
1485
+
1486
+ * :func: `textwrap.indent ` is now around 30% faster than before for large input.
1469
1487
(Contributed by Inada Naoki in :gh: `107369 `.)
1470
1488
1471
- * The :mod: `subprocess ` module uses :func: `os.posix_spawn ` in more situations
1472
- including the default where ``close_fds=True `` on many modern platforms. This
1473
- should provide a noteworthy performance increase launching processes on
1474
- FreeBSD and Solaris. See the :ref: `subprocess <whatsnew313-subprocess >`
1475
- section above for details.
1489
+ * The :mod: `subprocess ` module now uses the :func: `~os.posix_spawn ` function in
1490
+ more situations, including when *close_fds * is ``True `` (the default)
1491
+ on many modern platforms.
1492
+ This should provide a notable performance increase
1493
+ when launching processes on FreeBSD and Solaris.
1494
+ See the :ref: `subprocess <whatsnew313-subprocess >` section above for details.
1476
1495
(Contributed by Jakub Kulik in :gh: `113117 `.)
1477
1496
1478
- * Several standard library modules have had their import times significantly
1479
- improved. For example, the import time of the :mod: `typing ` module has been
1480
- reduced by around a third by removing dependencies on :mod: `re ` and
1481
- :mod: `contextlib `. Other modules to enjoy import-time speedups include
1482
- :mod: `importlib.metadata `, :mod: `threading `, :mod: `enum `, :mod: `functools `
1483
- and :mod: `email.utils `.
1484
- (Contributed by Alex Waygood, Shantanu Jain, Adam Turner, Daniel Hollas and
1485
- others in :gh: `109653 `.)
1486
1497
1487
1498
Removed Modules And APIs
1488
1499
========================
0 commit comments