We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76eec2d commit 2a77ad0Copy full SHA for 2a77ad0
Python/optimizer.c
@@ -560,7 +560,11 @@ translate_bytecode_to_trace(
560
_Py_BloomFilter_Add(dependencies, initial_code);
561
_Py_CODEUNIT *initial_instr = instr;
562
int trace_length = 0;
563
- int max_length = (buffer_size * 2) / 3; // 67% for trace, 33% for exit stubs
+ /*
564
+ * Assumption: 67% reserved for trace, 33% for exit stubs
565
+ * TODO: Compute the required number of exit stubs dynamically
566
+ */
567
+ int max_length = (buffer_size * 2) / 3;
568
struct {
569
PyFunctionObject *func;
570
PyCodeObject *code;
0 commit comments