Terrible FPU performance

Mihai Badoiu mbadoiu at gmail.com
Tue Apr 26 15:25:47 EDT 2011


Yes, running on pure python has the same issue (but overall only a factor 3
away):

i = 0
x = 1.0
while i < 10000000:
    x *= 0.8
    #x += 0.01
    i += 1
print x


On Tue, Apr 26, 2011 at 1:44 PM, Philip Semanchuk <philip at semanchuk.com>wrote:

>
> On Apr 26, 2011, at 1:34 PM, Mihai Badoiu wrote:
>
> > Already did.  They suggested the python list, because the asm generated
> code
> > is really correct and the problem might be with the python running on
> top.
>
> Does the same timing in consistency appear when you use pure Python?
>
> bye
> Philip
>
>
> >
> > On Tue, Apr 26, 2011 at 1:04 PM, Chris Colbert <sccolbert at gmail.com>
> wrote:
> >
> >>
> >>
> >> On Tue, Apr 26, 2011 at 8:40 AM, Mihai Badoiu <mbadoiu at gmail.com>
> wrote:
> >>
> >>> Hi,
> >>>
> >>> I have terrible performance for multiplication when one number gets
> very
> >>> close to zero.  I'm using cython by writing the following code:
> >>>
> >>>
> >> You should ask this question on the Cython users mailing list.
> >>
> >>
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110426/995e4ab4/attachment.html>


More information about the Python-list mailing list