]> granicus.if.org Git - python/commit
bpo-29585: optimize site.py startup time (GH-136)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 28 Jun 2017 15:31:53 +0000 (00:31 +0900)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2017 15:31:53 +0000 (00:31 +0900)
commita8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4
treec980c5c35f6c0a8710b7c3ea1bda301b67a395eb
parent79d37ae979a65ada0b2ac820279ccc3b1cd41ba6
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
Lib/site.py
Lib/sysconfig.py
Lib/test/test_site.py
Misc/NEWS.d/next/Library/2017-06-29-00-17-38.bpo-29585.x2V0my.rst [new file with mode: 0644]
Python/sysmodule.c
configure
configure.ac
pyconfig.h.in