On May 21, 3:38 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > > Question: Why is FakeCyloop slightly *faster* than Cyloop (here we > > have "cdef int i")? I thought that explicitly int-declaring the > > running variable in a loop makes it faster? > > There are coercions that are taking place that one often forgets. In > this case, it helps to look at the annotated Cython file. > Seehttp://sage.math.washington.edu/home/mhansen/loops.html. The > yellower lines will presumably take longer due to having to use the > Python C API. The white lines are pure C.
And you can double-click on any line in loops.html to see the C code that's generated for that line. Carl --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---