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 /configure.ac | |
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 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 18b940a..815769f 100644 --- a/configure.ac +++ b/configure.ac @@ -355,6 +355,8 @@ AC_SUBST(FRAMEWORKPYTHONW) AC_SUBST(FRAMEWORKUNIXTOOLSPREFIX) AC_SUBST(FRAMEWORKINSTALLAPPSPREFIX) +AC_DEFINE_UNQUOTED(PYTHONFRAMEWORK, "${PYTHONFRAMEWORK}", [framework name]) + ##AC_ARG_WITH(dyld, ## AS_HELP_STRING([--with-dyld], ## [Use (OpenStep|Rhapsody) dynamic linker])) |