On Wed, Sep 24, 2008 at 11:53 PM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Robert Bradshaw wrote: > >> Specifically, it operates on anything of type type (which includes >> extension classes). > > In that case it should already work on int and float, > as they're known to be types. >
Well, by some reason Robert's patch do not work on int, float, slices. It end-ups optimizing cdef classes and some of built-in types. If 'int', 'float', 'slice', etc. are added in 'builtin_types_table' at Cython/Compiler/Builtin.py then they will be optimized. I'll send a patch soon. I just have to run the testsuite to be sure nothing breaks. -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
