[issue44946] Integer operations are inefficient for "medium" integers.

Mark Dickinson report at bugs.python.org
Wed Aug 18 06:41:40 EDT 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

We already special-case medium integers in the Objects/longobject.c code, in various places. For example for addition, here:

https://github.com/python/cpython/blob/3240bc62f4e0afa09964f3afc845697f0a0806b9/Objects/longobject.c#L3070-L3072

Are you proposing further changes in longobject.c, or some other mechanism?

----------
nosy: +mark.dickinson

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


More information about the Python-bugs-list mailing list