#13400: Use strong caches diligently
-------------------------------+--------------------------------------------
Reporter: nbruin | Owner: robertwb
Type: enhancement | Status: new
Priority: major | Milestone: sage-wishlist
Component: coercion | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Changes (by SimonKing):
* cc: nthiery (added)
Comment:
I just notice: Apparently in your example, the is_subcategory function is
not the usual one (sage/categories/category.py), but the one in
sage/categories/covariant_functorial_construction.py.
It says
{{{
#!python
def is_subcategory(self, C):
"""
.. todo:: doctests + explain why this method is needed
"""
if C is self:
return True
return any(X.is_subcategory(C) for X in self._super_categories)
}}}
Actually I wonder why is it needed, myself.
Nicolas, is it not possible to use the default is_subcategory, by #11943?
Anyway, I think the real speed-up will not come from is_subcategory, but
from a more intelligent caching.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13400#comment:9>
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.