#18952: heavy performance regression with real/imag(ex)
---------------------------+----------------------------
   Reporter:  rws          |            Owner:
       Type:  defect       |           Status:  new
   Priority:  major        |        Milestone:  sage-6.8
  Component:  performance  |         Keywords:
  Merged in:               |          Authors:
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+----------------------------
 This is the first Symbench test. Sage around 4.3 took 0.3s (see
 http://wiki.sagemath.org/symbench#Problem_R1) but Sage-6.8rc0 needs 10
 minutes:
 {{{
 sage: def f(z): return sqrt(1/3)*z^2 + i/3
 sage: real(f(f(f(f(f(f(f(f(f(f(i/2)))))))))))
 }}}
 while
 {{{
 sage: %timeit real(f(f(f(f(f(f(f(f(f(f(i/2)))))))))).expand())
 10 loops, best of 3: 23.5 ms per loop
 }}}
 A simplified version of this is:
 {{{
 sage:
 real((((((((((sqrt(3)+I)^2+1)^2+1)^2+1)^2+1)^2+1)^2+1)^2+1)^2+1)^2+1)^2
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18952>
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/d/optout.

Reply via email to