Skip to content

Commit 2a77ad0

Browse files
committed
Update comment
1 parent 76eec2d commit 2a77ad0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Python/optimizer.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,11 @@ translate_bytecode_to_trace(
560560
_Py_BloomFilter_Add(dependencies, initial_code);
561561
_Py_CODEUNIT *initial_instr = instr;
562562
int trace_length = 0;
563-
int max_length = (buffer_size * 2) / 3; // 67% for trace, 33% for exit stubs
563+
/*
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;
564568
struct {
565569
PyFunctionObject *func;
566570
PyCodeObject *code;

0 commit comments

Comments
 (0)