diff options
author | Pieter Eendebak <pieter.eendebak@gmail.com> | 2022-03-28 08:43:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 08:43:45 (GMT) |
commit | 850687df47b03e98c1433e6e70e71a8921eb4454 (patch) | |
tree | ac852f75711ba9aa84959895dbf6778f2cceb7bb /Misc | |
parent | 86384cf83f96fcaec03e2ad6516e2e24f20d3b92 (diff) | |
download | cpython-850687df47b03e98c1433e6e70e71a8921eb4454.zip cpython-850687df47b03e98c1433e6e70e71a8921eb4454.tar.gz cpython-850687df47b03e98c1433e6e70e71a8921eb4454.tar.bz2 |
bpo-47070: Add _PyBytes_Repeat() (GH-31999)
Use it where appropriate: the repeat functions of `array.array`, `bytes`, `bytearray`, and `str`.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2022-03-19-21-50-59.bpo-47070.wPcsQh.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-03-19-21-50-59.bpo-47070.wPcsQh.rst b/Misc/NEWS.d/next/Core and Builtins/2022-03-19-21-50-59.bpo-47070.wPcsQh.rst new file mode 100644 index 0000000..568974f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-03-19-21-50-59.bpo-47070.wPcsQh.rst @@ -0,0 +1,3 @@ +Improve performance of ``array_inplace_repeat`` by reducing the number of invocations of ``memcpy``. +Refactor the ``repeat`` and inplace ``repeat`` methods of ``array``, ``bytes``, ``bytearray`` +and ``unicodeobject`` to use the common ``_PyBytes_Repeat``. |