Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66b76d5

Browse files
committed
Re-enable the optimizer
1 parent e64d0c1 commit 66b76d5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Python/optimizer_analysis.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,9 @@ _Py_uop_analyze_and_optimize(
511511

512512
peephole_opt(frame, buffer, buffer_size);
513513

514-
char *uop_optimize = Py_GETENV("PYTHONUOPSOPTIMIZE");
515-
if (uop_optimize != NULL && *uop_optimize > '0') {
516-
err = optimize_uops(
517-
(PyCodeObject *)frame->f_executable, buffer,
518-
buffer_size, curr_stacklen, dependencies);
519-
}
514+
err = optimize_uops(
515+
(PyCodeObject *)frame->f_executable, buffer,
516+
buffer_size, curr_stacklen, dependencies);
520517

521518
if (err == 0) {
522519
goto not_ready;

0 commit comments

Comments
 (0)