#14585: Make lazy_format and lazy_string faster
------------------------------+----------------------------
Reporter: SimonKing | Owner: robertwb
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.12
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------+----------------------------
Comment (by nbruin):
Don't forget:
{{{
property value:
def __get__(self):
cdef object f=self._func
if PyString_Check(f):
return f%self._args
return f(*self._args)
}}}
instead of the `@property` decorator leads to much better (and faster)
cython code.
--
Ticket URL: <http://trac.sagemath.org/ticket/14585#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.