Skip to content

Commit beb5980

Browse files
committed
gh-152721: Clarify the batch-list comment
Reword per review: the list is built with append per element, not pre-sized; note the old alloc(count - i) + trim per batch was O(count^2).
1 parent 1dac106 commit beb5980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_remote_debugging/binary_io_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ binary_reader_replay(BinaryReader *reader, PyObject *collector, PyObject *progre
11051105
return -1;
11061106
}
11071107
}
1108-
/* Exact-size the list; alloc+trim is O(count^2). */
1108+
/* Append per element; the old alloc(count - i) + trim per batch was O(count^2). */
11091109
timestamps_list = PyList_New(0);
11101110
if (!timestamps_list) {
11111111
return -1;

0 commit comments

Comments
 (0)