Skip to content

Commit cd27af7

Browse files
authored
bpo-41718: Update runpy startup time What's New (GH-24998)
1 parent bd9154a commit cd27af7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,10 @@ Optimizations
922922
(Contributed by Serhiy Storchaka in :issue:`41334`.)
923923
924924
* The :mod:`runpy` module now imports fewer modules.
925-
The ``python3 -m module-name`` command startup time is 1.3x faster in
926-
average.
927-
(Contributed by Victor Stinner in :issue:`41006`.)
925+
The ``python3 -m module-name`` command startup time is 1.4x faster in
926+
average. On Linux, ``python3 -I -m module-name`` imports 69 modules on Python
927+
3.9, whereas it only imports 51 modules (-18) on Python 3.10.
928+
(Contributed by Victor Stinner in :issue:`41006` and :issue:`41718`.)
928929
929930
* The ``LOAD_ATTR`` instruction now uses new "per opcode cache" mechanism. It
930931
is about 36% faster now for regular attributes and 44% faster for slots.

0 commit comments

Comments
 (0)