Skip to content

Commit 4cd1076

Browse files
authored
GH-126795: Increase the JIT threshold from 16 to 4096 (GH-126816)
1 parent 933f21c commit 4cd1076

File tree

4 files changed

+104
-101
lines changed

4 files changed

+104
-101
lines changed

Include/internal/pycore_backoff.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ backoff_counter_triggers(_Py_BackoffCounter counter)
102102
}
103103

104104
/* Initial JUMP_BACKWARD counter.
105-
* This determines when we create a trace for a loop.
106-
* Backoff sequence 16, 32, 64, 128, 256, 512, 1024, 2048, 4096. */
107-
#define JUMP_BACKWARD_INITIAL_VALUE 15
108-
#define JUMP_BACKWARD_INITIAL_BACKOFF 4
105+
* This determines when we create a trace for a loop. */
106+
#define JUMP_BACKWARD_INITIAL_VALUE 4095
107+
#define JUMP_BACKWARD_INITIAL_BACKOFF 12
109108
static inline _Py_BackoffCounter
110109
initial_jump_backoff_counter(void)
111110
{

0 commit comments

Comments
 (0)