Skip to content

Commit 142e56e

Browse files
Address review
1 parent 6f7934b commit 142e56e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
A new type of interpreter has been added to CPython. This interpreter uses tail calls for its instruction handlers. Preliminary benchmark results suggest 7.4-14.7% geometric mean faster on pyperformance (depending on platform), and up to 45% faster on Python-intensive workloads. Patch by Ken Jin, with ideas by Garret Gu, Haoran Xu, and Josh Haberman.
1+
A new type of interpreter has been added to CPython. This interpreter uses tail calls for its instruction handlers. Preliminary benchmark results suggest 7-14% geometric mean faster on pyperformance (depending on platform), and up to 45% faster on Python-intensive workloads. Patch by Ken Jin, with ideas by Garret Gu, Haoran Xu, and Josh Haberman.

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
797797
_Py_EnsureTstateNotNULL(tstate);
798798
CALL_STAT_INC(pyeval_calls);
799799

800-
#if USE_COMPUTED_GOTOS && !defined(Py_TAIL_CALL_INTERP)
800+
#if USE_COMPUTED_GOTOS
801801
/* Import the static jump table */
802802
#include "opcode_targets.h"
803803
#endif

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define OR_DTRACE_LINE
4848
#endif
4949

50-
#ifdef HAVE_COMPUTED_GOTOS
50+
#if defined(HAVE_COMPUTED_GOTOS) && !defined(Py_TAIL_CALL_INTERP)
5151
#ifndef USE_COMPUTED_GOTOS
5252
#define USE_COMPUTED_GOTOS 1
5353
#endif

0 commit comments

Comments
 (0)