Nathann Cohen wrote:
> The answer is yes, and the solution is indeed wrapping as proposed,
> but this can be done with less code repetition than I have seen on this
> thread up to now:
Argggggg ! Of course !!! Well thought !!!
Well, that's essentially what I suggested earlier modulo using
_a_cached = cached_function(_a_noncached)
instead of
@cached_function
def _a_cached(n):
return a_noncached(n)
;-)
So, depending on how smart the Python compiler is (...), you may win a
couple of femtoseconds with Nils' version...
-leif
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
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.