#18024: Mutability of tableaux part II: replacing CombinatorialObject by
ClonableList
-------------------------------------+-------------------------------------
Reporter: darij | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.6
Component: combinatorics | Resolution:
Keywords: tableaux, sage- | Merged in:
combinat, mutability, | Reviewers:
ClonableList, days64 | Work issues: fix __setstate__'s
Authors: Jan Keitel, | such that the doctests work
Report Upstream: N/A | Commit:
Branch: | 72c8418602852f07adb19abb0475c2947ed0637a
public/TransitionClonable | Stopgaps:
Dependencies: #15862 |
-------------------------------------+-------------------------------------
Changes (by darij):
* status: new => needs_review
* work_issues: => fix __setstate__'s such that the doctests work
Comment:
Done profiling this. The speed changes range from significant speedups to
minor slowdowns, the latter being mainly on methods (such as Tableau's
`restrict`) which ducktype the result as follows:
{{{
# attempt to return a tableau of the same type
try:
return self.parent()( res )
except Exception:
try:
return self.parent().Element( res )
except Exception:
return Tableau(res)
}}}
Also, two unpickling doctests are broken: one in ribbon_tableau.py, and
one in ribbon_shape_tableau.py. One of them makes no sense to me, but the
other might be worth salvaging.
--
Ticket URL: <http://trac.sagemath.org/ticket/18024#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 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/d/optout.