summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-09-15 16:19:30 (GMT)
committerGitHub <noreply@github.com>2021-09-15 16:19:30 (GMT)
commitcbeb81971057d6c382f45ecce92df2b204d4106a (patch)
tree98b66700b6ca5d81c863eb0b72bee6e8e38d91ca /Misc
parent1a9ef5798525bbb39a16c8af5c435b97352ee027 (diff)
downloadcpython-cbeb81971057d6c382f45ecce92df2b204d4106a.zip
cpython-cbeb81971057d6c382f45ecce92df2b204d4106a.tar.gz
cpython-cbeb81971057d6c382f45ecce92df2b204d4106a.tar.bz2
bpo-45020: Freeze some of the modules imported during startup. (gh-28335)
Doing this provides significant performance gains for runtime startup (~15% with all the imported modules frozen). We don't yet freeze all the imported modules because there are a few hiccups in the build systems we need to sort out first. (See bpo-45186 and bpo-45188.) Note that in PR GH-28320 we added a command-line flag (-X frozen_modules=[on|off]) that allows users to opt out of (or into) using frozen modules. The default is still "off" but we will change it to "on" as soon as we can do it in a way that does not cause contributors pain. https://bugs.python.org/issue45020
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Build/2021-09-14-10-07-23.bpo-45020._VGGPv.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2021-09-14-10-07-23.bpo-45020._VGGPv.rst b/Misc/NEWS.d/next/Build/2021-09-14-10-07-23.bpo-45020._VGGPv.rst
new file mode 100644
index 0000000..67d61c3
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2021-09-14-10-07-23.bpo-45020._VGGPv.rst
@@ -0,0 +1,4 @@
+Freeze stdlib modules that are imported during startup. This provides
+significant performance improvements to startup. If necessary, use the
+previously added "-X frozen_modules=off" commandline option to force
+importing the source modules.