[issue10044] small int optimization

Antoine Pitrou report at bugs.python.org
Thu Oct 7 23:40:58 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> In other words, when producing code for ptr_compare, the compiler is
> allowed to *assume* that a and b point into the same array, and act
> accordingly.

But this assumption doesn't bring *anything*, right?
That is, there is no shortcut way to compute "p - q" or "p > q" when
both point into the same "array".

----------

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


More information about the Python-bugs-list mailing list