[Cython] Comments on example code?
Gabriel Gellner
ggellner at uoguelph.ca
Wed Nov 26 20:58:38 CET 2008
> Also, if you are really interested in this then have a look at the C
> source generated by Cython -- there's a lot of stuff going on in order
> to acquire access to the ndarray, and if you find that disabling a line
> which checks things spends a lot of time we could easily add a flag to
> disable the check.
>
> Also I did once have plans for optimizing "np.empty" etc. so that no
> Python overhead would be necesarry (through inlineable functions in
> numpy.pxd), but I didn't have time for doing it.
>
I think I will try to do this, I don't really understand what it will entail,
but heck, it would be sweet, basically having zeros and empty would make
Cython super natural for what I often do.
Gabriel
More information about the Cython-dev
mailing list