Hi Robert, On 24 Sep., 22:14, Robert Bradshaw <rober...@math.washington.edu> wrote: > When you do > > f1 = Finder.which_root # creates an *object* f1 > f1(...) > > you're not taking advantage of the fact that which_root is a cpdef > function. This is probably where the bulk of your time is going.
How would one take advantage of it? Do you mean one should declare f1 as a cpdef function? But how does one do that? Actually I wondered about that question in the past - I'd be glad to finally learn how it's done. Or would it already be faster to keep Finder (which is cdef'd) as it is, and call Finder.which_root as a method? In Python, that would be slower, because the method lookup costs much time. Best regards, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org