We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 159601c commit 9f28e87Copy full SHA for 9f28e87
1 file changed
Include/internal/pycore_backoff.h
@@ -133,8 +133,11 @@ initial_jump_backoff_counter(void)
133
JUMP_BACKWARD_INITIAL_BACKOFF);
134
}
135
136
-// Set this to slightly (~25%) higher than JUMP_BACKWARD_INITIAL_VALUE
137
-#define RESUME_INITIAL_VALUE 5002
+// This needs to be around 2-4x of JUMP_BACKWARD_INITIAL_VALUE
+// The reasoning is that we always want loop traces to form and inline
138
+// functions before functions themselves warm up and link to them instead
139
+// of inlining.
140
+#define RESUME_INITIAL_VALUE 7917
141
#define RESUME_INITIAL_BACKOFF 6
142
static inline _Py_BackoffCounter
143
initial_resume_backoff_counter(void)
0 commit comments