GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-100239: expose `sq_repeat` helpers for `BINARY_OP_EXTEND` by NekoAsakura · Pull Request #148791 · python/cpython Conversation
|
| main | branch | % | |
|---|---|---|---|
str * int |
32.0 ns | 26.4 ns | -17.5% |
int * str |
32.7 ns | 26.8 ns | -18.0% |
bytes * int |
27.0 ns | 23.1 ns | -14.4% |
int * bytes |
27.2 ns | 23.0 ns | -15.4% |
tuple * int |
29.3 ns | 24.9 ns | -15.0% |
int * tuple |
29.7 ns | 24.8 ns | -16.5% |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| int_str_multiply(PyObject *lhs, PyObject *rhs) | ||
| { | ||
| return seq_int_multiply(rhs, lhs, PyUnicode_Type.tp_as_sequence->sq_repeat); | ||
| Py_ssize_t count = PyLong_AsSsize_t(lhs); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This section is repeated a couple of times, we could use a macro to define the methods (similar to FLOAT_LONG_ACTION). But current form is also fine with me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good point. 17 insertions(+), 59 deletions(-).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Documentation build overview
109 files changed ·
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@markshannon gentle ping :') |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.