#13991: Mitigate speed regressions in symmetric function related code due to
#12313
---------------------------------+------------------------------------------
Reporter: nbruin | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.7
Component: combinatorics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------------+------------------------------------------
Comment (by SimonKing):
The following (in which I use `UniqueRepresentation` on Partitions_n)
could also benefit from making `UniqueRepresentation` provide a cmp method
as well:
{{{
sage: P = Partitions(1)
sage: Q = Partitions(4)
sage: %timeit P==Q # this is how they do compare
625 loops, best of 3: 2.33 µs per loop
sage: %timeit P is Q # this is how UniqueRepresentation *should* compare
625 loops, best of 3: 248 ns per loop
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13991#comment:17>
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.