#12808: Optimize ClassCallMetaClass using Cython
--------------------------------------------------+-------------------------
Reporter: hivert | Owner: jason
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: misc | Resolution:
Keywords: classcall UniqueRepresentation | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Florent Hivert | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------+-------------------------
Comment (by SimonKing):
Replying to [comment:32 SimonKing]:
> Perhaps one needs to avoid any application of nested classes in the
nested_class module, and move the examples to a different module?
Nope, doesn't work.
So, currently, it seems (easily) possible to change nested_class.py into
nested_class.pyx (even so that all tests pass), but impossible to change
`class NestedClassMetaclass` into `cdef class NestedClassMetaclass`.
Hence, probably your approach is the way to go: Introduce a new cdef
class, implement fast cython methods there, and then let
`ClasscallMetaclass` double inherit from the new cdef class and from
`NestedClassMetaclass`.
I still think that a meta-metaclass could do the same job automatically
(namely: We implement various cdef classes, and the meta-metaclass
combines them and turns them into a metaclass). But that is clearly a
different topic.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12808#comment:33>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.