summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-06-28 15:31:53 (GMT)
committerGitHub <noreply@github.com>2017-06-28 15:31:53 (GMT)
commita8f8d5b4bd30dbe0828550469d98f12d2ebb2ef4 (patch)
treec980c5c35f6c0a8710b7c3ea1bda301b67a395eb /pyconfig.h.in
parent79d37ae979a65ada0b2ac820279ccc3b1cd41ba6 (diff)
downloadcpython-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.in3
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