[issue21955] ceval.c: implement fast path for integers with a single digit

Serhiy Storchaka report at bugs.python.org
Wed Feb 3 14:43:20 EST 2016


Serhiy Storchaka added the comment:

> BTW, what do you think about using __int128 when available?  That way we can also optimize twodigit PyLongs.

__int128 is not always available and it will add too much of complexity for possible less gain. There is many ways to optimize the code and we should to choose those of them that have the best gain/complexity ratio.

Lets split the patch on smaller parts: 1) direct using long-specialized functions in ceval.c, and 2) optimize the fast path in these functions, and test them separately and combined. May be only one way will add a gain.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21955>
_______________________________________


More information about the Python-bugs-list mailing list