[issue37837] add internal _PyLong_FromUnsignedChar() function

Greg Price report at bugs.python.org
Wed Aug 28 01:55:19 EDT 2019


Greg Price <gnprice at gmail.com> added the comment:

Ah OK, that makes sense of it then :)

> But the most important thing is that using PyLong_FromUnsignedLong() instead of _PyLong_FromUnsignedChar() on top of GH-15192 is producing the same results: striter_next() uses small_ints[] directly. However that's not true for bytearrayiter_next(): PyLong_FromUnsignedLong() is called there. I think that's due to how code is profiled so I'm satisfied with these results more or less.

Very interesting! That's a good comparison to have made, too.

I agree with your conclusions.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37837>
_______________________________________


More information about the Python-bugs-list mailing list