diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-06-28 15:31:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 15:31:53 (GMT) |
commit | a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 (patch) | |
tree | c980c5c35f6c0a8710b7c3ea1bda301b67a395eb /Misc | |
parent | 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6 (diff) | |
download | cpython-a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4.zip cpython-a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4.tar.gz cpython-a8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4.tar.bz2 |
bpo-29585: optimize site.py startup time (GH-136)
Avoid importing `sysconfig` from `site` by copying minimum code.
Python startup is 5% faster on Linux and 30% faster on macOS
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst b/Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst new file mode 100644 index 0000000..c841f1b --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst @@ -0,0 +1,2 @@ +Avoid importing ``sysconfig`` from ``site`` to improve startup speed. Python +startup is about 5% faster on Linux and 30% faster on macOS. |