Yes, running on pure python has the same issue (but overall only a factor 3 away):<div><br></div><div><div>i = 0</div><div>x = 1.0</div><div>while i < 10000000:</div><div>    x *= 0.8</div><div>    #x += 0.01</div><div>
    i += 1</div><div>print x</div><div><br></div><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 1:44 PM, Philip Semanchuk <span dir="ltr"><<a href="mailto:philip@semanchuk.com">philip@semanchuk.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Apr 26, 2011, at 1:34 PM, Mihai Badoiu wrote:<br>
<br>
> Already did.  They suggested the python list, because the asm generated code<br>
> is really correct and the problem might be with the python running on top.<br>
<br>
</div>Does the same timing in consistency appear when you use pure Python?<br>
<br>
bye<br>
Philip<br>
<div class="im"><br>
<br>
><br>
> On Tue, Apr 26, 2011 at 1:04 PM, Chris Colbert <<a href="mailto:sccolbert@gmail.com">sccolbert@gmail.com</a>> wrote:<br>
><br>
>><br>
>><br>
>> On Tue, Apr 26, 2011 at 8:40 AM, Mihai Badoiu <<a href="mailto:mbadoiu@gmail.com">mbadoiu@gmail.com</a>> wrote:<br>
>><br>
>>> Hi,<br>
>>><br>
>>> I have terrible performance for multiplication when one number gets very<br>
>>> close to zero.  I'm using cython by writing the following code:<br>
>>><br>
>>><br>
>> You should ask this question on the Cython users mailing list.<br>
>><br>
>><br>
</div>> --<br>
> <a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<font color="#888888"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>