mirror of
https://github.com/python/cpython
synced 2026-09-26 16:21:04 +03:00
This change gives a significant speedup, as the METH_FASTCALL calling convention is now used. The following bytes and bytearray methods are adapted: - count() - find() - index() - rfind() - rindex() Co-authored-by: Inada Naoki <songofacandy@gmail.com>
9 lines
242 B
ReStructuredText
9 lines
242 B
ReStructuredText
Improve the performance of the following :class:`bytes` and
|
|
:class:`bytearray` methods by adapting them to the :c:macro:`METH_FASTCALL`
|
|
calling convention:
|
|
|
|
* :meth:`!count`
|
|
* :meth:`!find`
|
|
* :meth:`!index`
|
|
* :meth:`!rfind`
|
|
* :meth:`!rindex`
|