#7526: polynomial_template should avoid unnecessary coercions
---------------------------+------------------------------------------------
   Reporter:  ylchapuy     |       Owner:  tbd
       Type:  defect       |      Status:  new
   Priority:  major        |   Milestone:     
  Component:  performance  |    Keywords:     
Work_issues:               |      Author:     
   Upstream:  N/A          |    Reviewer:     
     Merged:               |  
---------------------------+------------------------------------------------
 e.g. in __mod__, we should coerce other only if needed.
 This gives great speed up, e.g:
 {{{
 sage: R.<x> = GF(3)[]
 sage: p=x^100 + x^81 + x^67 + x^33 + 1
 sage: q=x^10 + x^8 + x^6 + x^3 + 1
 sage: timeit('p%q')
 625 loops, best of 3: 677 µs per loop  #Before
 625 loops, best of 3: 60.3 µs per loop #After
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7526>
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.


Reply via email to