#14214: Cythoned homsets
----------------------------------------------+-----------------------------
Reporter: SimonKing | Owner: tbd
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.10
Component: performance | Resolution:
Keywords: Hom, cython, cached method | Work issues: How to store
domain and codomain?
Report Upstream: N/A | Reviewers:
Authors: Simon King | Merged in:
Dependencies: #14159, #12951, #13184 | Stopgaps:
----------------------------------------------+-----------------------------
Comment (by SimonKing):
Both patches are updated, I guess we can now focus on the remaining issue
with properties.
I asked whether it'd make sense to cythonize lazy_attribute. I think it
does not, because we want to override `__name__` of an instance which
won't work in a cdef class.
In addition, it would be bad for speed if the property needed to first
look up a name and then try to find this name as a key of
`__cached_methods`. Would it be acceptable to have two specialised non-
data descriptors with fixed names `_domain` and `_codomain`, rather than
implementing a general non-data descriptor that can take any name?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14214#comment:47>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.