[Cython] Regresion in 0.19

屈鹏 qvcolonel at gmail.com
Wed May 1 09:37:19 CEST 2013


Why is cython so slow?


2013/5/1 Lisandro Dalcin <dalcinl at gmail.com>

> See the example below, the last hunk fails with Cython 0.19. It seems
> Cython is confusing attribute access with constness.
>
>
> CYTHON=cython
>
> echo 'cdef import from *:' > defs.pxd
> echo '    enum:SIZE'      >> defs.pxd
>
> echo 'from defs cimport *'   > code1.pyx
> echo 'cdef char buf[SIZE]'  >> code1.pyx
> $CYTHON code1.pyx
>
> echo 'cimport defs'              > code2.pyx
> echo 'cdef char buf[defs.SIZE]' >> code2.pyx
> $CYTHON code2.pyx
>
>
> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 3000 Santa Fe, Argentina
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel
>



-- 
while(sleeping){
        ++money;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cython-devel/attachments/20130501/b0e5ecc0/attachment.html>


More information about the cython-devel mailing list