Skip to content

Commit 44a9f3d

Browse files
authored
gh-109653: What's new: Note improved import times for several stdlib modules in Python 3.13 (#118697)
1 parent 0f8a07d commit 44a9f3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,15 @@ Optimizations
999999
section above for details.
10001000
(Contributed by Jakub Kulik in :gh:`113117`.)
10011001

1002+
* Several standard library modules have had their import times significantly
1003+
improved. For example, the import time of the :mod:`typing` module has been
1004+
reduced by around a third by removing dependencies on :mod:`re` and
1005+
:mod:`contextlib`. Other modules to enjoy import-time speedups include
1006+
:mod:`importlib.metadata`, :mod:`threading`, :mod:`enum`, :mod:`functools`
1007+
and :mod:`email.utils`.
1008+
(Contributed by Alex Waygood, Shantanu Jain, Adam Turner, Daniel Hollas and
1009+
others in :gh:`109653`.)
1010+
10021011
.. _whatsnew313-jit-compiler:
10031012

10041013
Experimental JIT Compiler

0 commit comments

Comments
 (0)