Jeroen Demeyer <jeroen.k.deme...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37837>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to