]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41718: Update runpy startup time What's New (GH-24998)
authorVictor Stinner <vstinner@python.org>
Tue, 23 Mar 2021 19:22:40 +0000 (20:22 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 19:22:40 +0000 (20:22 +0100)
Doc/whatsnew/3.10.rst

index b5e425293962c50c7cdb95bd65fddaafdd580c58..e9d29b0449da65e7d63d36601dc33df0374a5243 100644 (file)
@@ -922,9 +922,10 @@ Optimizations
   (Contributed by Serhiy Storchaka in :issue:`41334`.)
 
 * The :mod:`runpy` module now imports fewer modules.
-  The ``python3 -m module-name`` command startup time is 1.3x faster in
-  average.
-  (Contributed by Victor Stinner in :issue:`41006`.)
+  The ``python3 -m module-name`` command startup time is 1.4x faster in
+  average. On Linux, ``python3 -I -m module-name`` imports 69 modules on Python
+  3.9, whereas it only imports 51 modules (-18) on Python 3.10.
+  (Contributed by Victor Stinner in :issue:`41006` and :issue:`41718`.)
 
 * The ``LOAD_ATTR`` instruction now uses new "per opcode cache" mechanism.  It
   is about 36% faster now for regular attributes and 44% faster for slots.