#9542: optimize znpoly arithmetic -- it's way, way too slow because of the
polynomial template thingy
------------------------------------+---------------------------------
Reporter: was | Owner: AlexGhitza
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.2
Component: basic arithmetic | Resolution:
Keywords: | Merged in:
Authors: | Reviewers: Jean-Pierre Flori
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+---------------------------------
Changes (by jpflori):
* status: new => needs_review
* reviewer: => Jean-Pierre Flori
Comment:
Based on the same idea (`_mul_no_template_`):
{{{
sage: K = Integers(2**6)
sage: R.<x> = K[]
sage: f = R([1,2,5,-9]); g = R([1,2,3,4])
sage: %timeit f._mul_zn_poly(g)
100000 loops, best of 3: 5.32 us per loop
sage: %timeit f._mul_(g)
1000000 loops, best of 3: 1 us per loop
sage: %timeit f._mul_no_template(g)
1000000 loops, best of 3: 790 ns per loop
sage: %timeit f*g
1000000 loops, best of 3: 845 ns per loop
}}}
So it seems the templating overhead is not so terrible.
It also varies a little bit depending on the finite field.
And it does not seem the templating code can be really trimmed down and
further optimized.
So I suggest to close this ticket as won't fix.
--
Ticket URL: <http://trac.sagemath.org/ticket/9542#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.