#13922: Avoid a regression in the creation of homsets
-------------------------------+--------------------------------------------
       Reporter:  SimonKing    |         Owner:  tbd     
           Type:  defect       |        Status:  new     
       Priority:  critical     |     Milestone:  sage-5.6
      Component:  performance  |    Resolution:          
       Keywords:               |   Work issues:          
Report Upstream:  N/A          |     Reviewers:          
        Authors:               |     Merged in:          
   Dependencies:  #715         |      Stopgaps:          
-------------------------------+--------------------------------------------

Comment (by vbraun):

 I take it that whenever you write `pi/2` we first see if that can be
 simplified to just the numerator. Which requires a gcd, and #13014 changed
 gcd of symbolics to be more expensive.

 Really the example is very poor, a python function returning a symbolic
 expression. If you just had a symbolic function then the `fast_callable`
 trickery could do its job. Just leave out the `lambda t:` and it is >100
 times faster!
 {{{
 sage: var('t')
 t
 sage: %time p =
 polar_plot((100/(100+(t-pi/2)^8))*(2-sin(7*t)-cos(30*t)/2), -pi/4, 3*pi/2,
 color="red",plot_points=1000)
 CPU times: user 0.04 s, sys: 0.00 s, total: 0.04 s
 Wall time: 0.05 s
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13922#comment:3>
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