On 2015-02-11 12:15, Marc Mezzarobba wrote:
also that the cost of issuing a Python method call when constructing elements is significant, what is the best approach to deal with it?
If you *really* need a fast _element_constructor_ method, then the only way is to use Cython.
However, I wonder why you insist on using parent._element_constructor_(). You could for example have a fast ElementClass.__init__() or a fast non-method function construct_foo_element().
why are so many parents Cython classes if there are no benefits?
For rings, parents are generally Python objects... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.