Serhiy Storchaka added the comment:
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.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28754>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com