mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
* Add _Py_memory_repeat function to pycore_list * Add _Py_RefcntAdd function to pycore_object * Use the new functions in tuplerepeat, list_repeat, and list_inplace_repeat
1 line
156 B
ReStructuredText
1 line
156 B
ReStructuredText
Improve performance of repetition of :class:`list` and :class:`tuple` by using ``memcpy`` to copy data and performing the reference increments in one step.
|