[issue37837] add internal _PyLong_FromUnsignedChar() function

Jeroen Demeyer report at bugs.python.org
Tue Aug 13 08:51:22 EDT 2019


Jeroen Demeyer <jeroen.k.demeyer at gmail.com> added the comment:

Maybe an even better idea would be to partially inline PyLong_FromLong(). If the check for small ints in PyLong_FromLong() would be inlined, then the compiler could optimize those checks. This would benefit all users of PyLong_FromLong() without code changes.

----------
nosy: +jdemeyer

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


More information about the Python-bugs-list mailing list