Hi there, > I think, the question is (at least on the short run), how one can work > around. > > Taking your example: > class End(SageObject): > def toto(self): > return 1 > sage: c_long = long_mro(500) > sage: obj_long = c_long() > sage: obj_end = End() > sage: timeit("obj_end.toto()") > 625 loops, best of 3: 963 ns per loop > sage: timeit("obj_long.toto()") > 625 loops, best of 3: 22.8 盜 per loop > > So, as you confirmed, a long mro matters, at least if Cython is > involved.
I don't have to investigate further but, according to Stefan Behnel on cython-users it seems to be solved in cython 0.14 ! Cheers, Florent -- 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