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 /pyconfig.h.in | |
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 'pyconfig.h.in')
-rw-r--r-- | pyconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in index fa2792b..f7c50ea 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -1247,6 +1247,9 @@ /* Define as the preferred size in bits of long digits */ #undef PYLONG_BITS_IN_DIGIT +/* framework name */ +#undef PYTHONFRAMEWORK + /* Define if you want to coerce the C locale to a UTF-8 based locale */ #undef PY_COERCE_C_LOCALE |