Skip to content

Commit 8c7ec58

Browse files
committed
Inline listwriter_extend_array()
1 parent 9313299 commit 8c7ec58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Objects/listobject.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4621,7 +4621,8 @@ PyListWriter_Extend(PyListWriter *writer, PyObject *iterable)
46214621
}
46224622

46234623

4624-
static int
4624+
// Force inlining to optimize "if (steal)" at build time
4625+
static inline Py_ALWAYS_INLINE int
46254626
listwriter_extend_array(PyListWriter *writer,
46264627
PyObject *const *items, Py_ssize_t nitem,
46274628
int steal)

0 commit comments

Comments
 (0)