#11684: Obtaining coefficients of polynomials over finite fields is extremely
slow
---------------------------+------------------------------------------------
Reporter: johanbosman | Owner: tbd
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.2
Component: performance | Keywords: polynomials, finite fields
Work_issues: | Upstream: N/A
Reviewer: | Author: Johan Bosman, Simon King
Merged: | Dependencies: #11685
---------------------------+------------------------------------------------
Changes (by newvalueoldvalue):
* status: needs_info => needs_review
* author: Johan Bosman => Johan Bosman, Simon King
Comment:
At least the tests in devel/sage/doc pass. Hence, I have already posted my
patch. Here are the timings:
{{{
sage: K.<a> = GF(5^3)
sage: P = PolynomialRing(K, 'x')
sage: f = P.random_element(100)
}}}
#11685 only:
{{{
sage: timeit('f.list()')
5 loops, best of 3: 79.9 ms per loop
}}}
#11685 with your patch:
{{{
sage: timeit('f.list()')
125 loops, best of 3: 2.36 ms per loop
}}}
All patches:
{{{
sage: timeit('f.list()')
125 loops, best of 3: 2.03 ms per loop
}}}
OK, that's only a gain of 14%. But I had one run where it took 2.42 ms
with one patch and 1.98 ms with both patches (that's why I stated 20% in
my previous post).
Anyway, does the second patch make sense? I am currently running doc
tests, so that probably I can review both #11685 and your patch from here.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11684#comment:6>
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.