#4982: consolidate shifts in polynomial_template
---------------------------+------------------------------------------------
Reporter: robertwb | Owner: tbd
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.3
Component: algebra | Keywords:
Work_issues: | Author: Alex Ghitza
Reviewer: | Merged:
---------------------------+------------------------------------------------
Comment(by malb):
The only issue I can see is the potential performance overhead.
Vanilla 4.2.1:
{{{
sage: P.<x> = GF(2)[]
sage: f = P.random_element(50)
sage: %timeit f<<50
1000000 loops, best of 3: 792 ns per loop
}}}
This patch:
{{{
sage: P.<x> = GF(2)[]
sage: f = P.random_element(50)
sage: %timeit f<<50
1000000 loops, best of 3: 952 ns per loop
}}}
Maybe a cdef method could be added which everyone ({{{shift}}},
{{{__lshift__}}}, {{{__rshift__}}}) calls?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4982#comment:5>
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
-~----------~----~----~----~------~----~------~--~---