Re: [sage-devel] cpdef (a little) harmful

2013-04-09 Thread Tom Boothby
This shouldn't really come as a surprise. From the Cython documentation, "This is about 20 times slower, but still about 10 times faster than the original Python-only integration code. This shows how large the speed-ups can easily be when whole loops are moved from Python code into a Cython modul

[sage-devel] cpdef (a little) harmful

2013-04-09 Thread Nils Bruin
Sometimes one ends up with implementing really small access routines, just to do a lookup for something. In cython you might even want to do that with some "cdef" methods. For general accessibility, you might consider slapping a "cpdef" on rather than a "cdef". That may come at a serious price, bec