summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-23 19:22:40 (GMT)
committerGitHub <noreply@github.com>2021-03-23 19:22:40 (GMT)
commitcd27af70d58161c59072e27a10e0e63dcbf0bccb (patch)
treeb97daa7f7a78a341d18489ccdefaaf8345ddf316 /Doc
parentbd9154a495434464283f74b660160f89930cd791 (diff)
downloadcpython-cd27af70d58161c59072e27a10e0e63dcbf0bccb.zip
cpython-cd27af70d58161c59072e27a10e0e63dcbf0bccb.tar.gz
cpython-cd27af70d58161c59072e27a10e0e63dcbf0bccb.tar.bz2
bpo-41718: Update runpy startup time What's New (GH-24998)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.10.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index b5e4252..e9d29b0 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -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.