Hi Jeroen, On 2018-06-05, Jeroen Demeyer <j.deme...@ugent.be> wrote: > On 2018-06-05 11:48, Jeroen Demeyer wrote: >> S = MatrixSpace(GF(37), 5, 5); timeit('S()') > > I investigated further and one of the reasons that the new code is > slower is because of some additional calls to MatrixSpace.nrows() and > similar methods. Since almost everything else is in Cython, calls to > simple pure Python methods like these account for a large part of the > time taken in S() above.
Yes, it would indeed be a total waste of time to not just access the cdef attributes of a matrix when writing Cython code. Cheers, Simon -- 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 https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.