]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109653: What's new: Note improved import times for several stdlib modules in Pytho...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Tue, 7 May 2024 11:34:19 +0000 (12:34 +0100)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 11:34:19 +0000 (11:34 +0000)
Doc/whatsnew/3.13.rst

index 5b5155b00c46142e001fee20bd17efec7fed5294..d875527220f79f91ab1110a62233dab32bdc49f3 100644 (file)
@@ -999,6 +999,15 @@ Optimizations
   section above for details.
   (Contributed by Jakub Kulik in :gh:`113117`.)
 
+* Several standard library modules have had their import times significantly
+  improved. For example, the import time of the :mod:`typing` module has been
+  reduced by around a third by removing dependencies on :mod:`re` and
+  :mod:`contextlib`. Other modules to enjoy import-time speedups include
+  :mod:`importlib.metadata`, :mod:`threading`, :mod:`enum`, :mod:`functools`
+  and :mod:`email.utils`.
+  (Contributed by Alex Waygood, Shantanu Jain, Adam Turner, Daniel Hollas and
+  others in :gh:`109653`.)
+
 .. _whatsnew313-jit-compiler:
 
 Experimental JIT Compiler