[Stackless] Slowdown when running Numpy with Stackless?

Bin Huang bin.arthur at gmail.com
Tue May 7 22:17:21 CEST 2013


Hi Richard,

So I was able to compile with STACKLESS_OFF and manual removal of
'static'. I measured the performance again:

Problem size    CPython             Stackless           Stackless_off
256x256           14.106 ms          39.331 ms          39.394 ms
512x512           110.648 ms        346.857 ms        350.049 ms
1024x1024       1022.090 ms      8949.712 ms      8926.275 ms
2048x2048       7795.782 ms      80161.503 ms    78647.046 ms

Then I obtained the source code for official Python 2.7.2 tarball
release and repeated the
process. Freshly installed Python 2.7.2 also showed slowdown. Clearly,
it is how
to install stackless Python and Numpy that matters.

Here is commands I used to install stackess Python and Numpy:

a) ~/stackless$ ./configure --prefix=MY_LOCAL_DIR
b) ~/stackless$ make
c) ~/stackless$ make install
e) ~/numpy-1.6.1$ MY_LOCAL_DIR/bin/python setup.py build
f) ~/numpy-1.6.1$ MY_LOCAL_DIR/bin/python setup.py install

Is there anything special that you think I need to pay attention to?

Thanks!

Bin
On Mon, May 6, 2013 at 11:19 PM, Richard Tew <richard.m.tew at gmail.com> wrote:
>
> On Tue, May 7, 2013 at 2:40 PM, Bin Huang <bin.arthur at gmail.com> wrote:
> > Objects/descrobject.c: At top level:
> > Objects/descrobject.c:486:14: error: static declaration of
> > 'PyMemberDescr_Type' follows non-static declaration
> > Include/descrobject.h:79:26: note: previous declaration of
> > 'PyMemberDescr_Type' was here
> > Objects/descrobject.c:526:14: error: static declaration of
> > 'PyGetSetDescr_Type' follows non-static declaration
> > Include/descrobject.h:78:26: note: previous declaration of
> > 'PyGetSetDescr_Type' was here
>
> Yes, just remove the statics.  I do not have this problem compiling
> with Visual Studio Express.  I am unable to compile with mingw at all,
> and need to look into it further, so can't see whether my gcc is as
> pedantic as yours.
>
> Cheers,
> Richard.
>
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list