speeding up programs (was slowness in repeated Maxima evaluations) from Sage



On 12/7/08, Richard Fateman <fateman at cs.berkeley.edu> wrote:

>  There are a number of peculiarities in the way this computation was set up,
> perhaps some because the original author was not concerned with efficiency,
> or aware of the consequences of programming in certain ways. or perhaps Sage
> is itself producing bad stuff from good input. I don't know which.

Actually the problem as it was described on the Sage mailing list is
not that the program was too slow, but rather that it got slower and
slower (by a substantial factor each time) if it was executed
repeatedly from Sage.

I wrote that program as an approximation to the description of the
troublesome program (which wasn't posted). When I run it repeatedly
in Maxima, the run time remains constant (ignoring noise).
The evidence such as it is suggests the problem is in Sage, not Maxima.

FWIW

Robert Dodier