[issue10044] small int optimization
Serhiy Storchaka
report at bugs.python.org
Sat Sep 22 18:51:10 CEST 2012
Serhiy Storchaka added the comment:
> I recommend to close the issue as rejected.
I think _PyLong_IS_SMALL_INT can be rewritten in a safe style. For example, using a checking of several fields ((sdigit)(x)->ob_digit[0] < _MAX_SMALL_INT && PySIZE(x) <= 1) or a
special flag. It is possible however that shuch checking will fully destroy the effect of optimization. We need further research.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10044>
_______________________________________
More information about the Python-bugs-list
mailing list