Message281765
Julien, you can declare the hi parameter as
hi: Py_ssize_t(py_default="len(a)") = -1
if you want the signature be matching the documentation.
In general, it is better to use converter names rather than format codes.
> Curiously, this patch gives about a 10% to 15% speedup. Any sense of how that improvement arises?
This is rather a random difference. Try to run the bench several times. With using Victor's perf module the difference is not significant.
Maybe using FASTCALL have some positive effect, but it is unlikely noticeable with such complex function. |
|
Date |
User |
Action |
Args |
2016-11-26 10:45:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, vstinner, larry, martin.panter, mdk |
2016-11-26 10:45:07 | serhiy.storchaka | set | messageid: <1480157107.03.0.0721984946723.issue28754@psf.upfronthosting.co.za> |
2016-11-26 10:45:07 | serhiy.storchaka | link | issue28754 messages |
2016-11-26 10:45:06 | serhiy.storchaka | create | |
|