Skip to content

Commit

Permalink
Forcibly enable Tier 2 optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Oct 25, 2023
1 parent 5b51a44 commit db2e265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ init_interp_main(PyThreadState *tstate)
// Turn on experimental tier 2 (uops-based) optimizer
if (is_main_interp) {
char *envvar = Py_GETENV("PYTHONUOPS");
int enabled = envvar != NULL && *envvar > '0';
int enabled = 1; // envvar != NULL && *envvar > '0';
if (_Py_get_xoption(&config->xoptions, L"uops") != NULL) {
enabled = 1;
}
Expand Down

0 comments on commit db2e265

Please sign in to comment.