#17456: Sppedup TIDES interface
---------------------------+--------------------------------
   Reporter:  mmarco       |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-6.5
  Component:  interfaces   |         Keywords:  TIDES,
  Merged in:               |          Authors:  Miguel Marco
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+--------------------------------
 Right now the interface to TIDES does a lot of symbolic expresion
 comparisons, which is very slow. This patch changes those comparisons to
 the corresponding strings, which is much faster.

 As an example, the following problem:

 {{{
 sage: from sage.interfaces.tides import genfiles_mintides
 sage: f(x,t) = [sin(x*t)+cos(x)/sqrt(1+x^2+log(x)-5*exp(x^2+1))]
 sage: %time genfiles_mintides('/dev/null', '/dev/null', f, [1], 0, 10, 10,
 output='/dev/null')
 CPU times: user 9.31 s, sys: 46 ms, total: 9.35 s
 Wall time: 9.32 s
 }}}

 With the patch is reduced to:
 {{{
 sage: from sage.interfaces.tides import genfiles_mintides
 sage: f(x,t) = [sin(x*t)+cos(x)/sqrt(1+x^2+log(x)-5*exp(x^2+1))]
 sage: %time genfiles_mintides('/dev/null', '/dev/null', f, [1], 0, 10, 10,
 output='/dev/null')
 CPU times: user 838 ms, sys: 24 ms, total: 862 ms
 Wall time: 854 ms
 }}}

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