#15792: A previously fixed regression has reappeared
-------------------------------+------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: performance | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------+------------------------
Comment (by SimonKing):
Aha! Very good news. At #11900, an incomplete category initialisation has
been introduced for matrix spaces, to prevent some regression. But I just
tested: If we now ''always'' fully initialise the matrix space, we get
{{{
sage: %time D = J0(46).endomorphism_ring().discriminant()
CPU times: user 10.16 s, sys: 0.22 s, total: 10.39 s
Wall time: 10.40 s
sage: %time TestSuite(CrystalOfTableaux(['B',4],shape=[2,1,1,0])).run()
CPU times: user 3.16 s, sys: 0.09 s, total: 3.25 s
Wall time: 3.26 s
sage: W.<z> = CyclotomicField(13)
sage: %time M = Matrix(W, 2, 3, [10^30*(1-z)^13, 1, 2, 3, 4,
z]).echelon_form()
CPU times: user 2.05 s, sys: 0.04 s, total: 2.08 s
Wall time: 2.08 s
sage: %time L = EllipticCurve('960d1').prove_BSD()
CPU times: user 4.70 s, sys: 0.06 s, total: 4.75 s
Wall time: 4.78 s
sage: def test(E):
....: for p in prime_range(10000):
....: if p != 389:
....: G = E.change_ring(GF(p)).abelian_group()
....:
sage: E = EllipticCurve('389a')
sage: %time test(E)
CPU times: user 26.96 s, sys: 0.24 s, total: 27.20 s
Wall time: 27.26 s
sage: E = J0(46).endomorphism_ring()
sage: %time g = E.gens()
CPU times: user 9.51 s, sys: 0.37 s, total: 9.88 s
Wall time: 9.90 s
}}}
In other words, it seems that we can now afford full category
initialisation!!
That said, we should find other ways to speed up the `E.gens()` and
`E.discriminant()` tests, as they used to be faster.
--
Ticket URL: <http://trac.sagemath.org/ticket/15792#comment:4>
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/groups/opt_out.