Hi William, On 25 Jan., 19:30, William Stein <wst...@gmail.com> wrote: > > Small improvement, but an improvement. Also, I observed that some > > matrix functions use hand-made caches. Should we change those to use > > @cahced_method instead, or is this done by some design reason? > > There was no cached_method when I wrote most of the matrix code. > Also, I think decorators weren't supported in Cython then (?).
IIRC, arbitrary decorators are still not supported for methods of a cdef class. But by #11115, it is at least possible to use @cached_method on methods of a "usual" class defined in a Cython file (I think that used not to be the case before #11115). > The matrix caching code is definitely more sophisticated than what > cached_method does though. It has to behave differently for mutable > and immutable matrices. ... which would indeed be beyond the scope of cached_method. Cheers, 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