8000 Quick test to see if removing the tier2 interpreter speeds up tier1 by gvanrossum · Pull Request #117908 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Quick test to see if removing the tier2 interpreter speeds up tier1 #117908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Prev Previous commit
Next Next commit
Support a proper ./configure option --disable-tier2
  • Loading branch information
gvanrossum committed Apr 16, 2024
commit e83be549fc8e1e3fed6bf561386dc5694f8a09bf
30 changes: 30 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,21 @@ else
AC_MSG_RESULT([no])
fi

# Check for --disable-tier2
# --disable-tier2
AC_MSG_CHECKING([for --disable-tier2])
AC_ARG_ENABLE([tier2],
[AS_HELP_STRING([--disable-tier2], [disable tier 2 interpreter support (default is no)])],
[AS_VAR_IF([enable_tier2], [yes], [disable_tier2=no], [disable_tier2=yes])], [disable_tier2=no]
)
AC_MSG_RESULT([$disable_tier2])

if test "$disable_tier2" = "yes"
then
AC_DEFINE([_Py_NOTIER2], [1],
[Define if you want to disable the tier 2 interpreter entirely])
fi

# Check for --enable-experimental-jit:
AC_MSG_CHECKING([for --enable-experimental-jit])
AC_ARG_ENABLE([experimental-jit],
Expand Down
3 changes: 3 additions & 0 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1923,6 +1923,9 @@
/* framework name */
#undef _PYTHONFRAMEWORK

/* Define if you want to disable the tier 2 interpreter entirely */
#undef _Py_NOTIER2

/* Define to force use of thread-safe errno, h_errno, and other functions */
#undef _REENTRANT

Expand Down
0