Slowness of limit



Stefano Ferri wrote:
> I have to apply "limit" to a 42x42 matrix. Altough it is a very simple 
> operation (matrix is simple and also sparse) it takes a lot of time and memory 
> (on an athlon xp-m 2800+).
>
> (%i15) limit(K,bk,inf)$
> Evaluation took 4.4963 seconds (4.5914 elapsed) using 29.406 MB.
>
> and this:
>
> (%i16) map(lambda([el],limit(el,bk,inf)),K)$
> Evaluation took 4.5323 seconds (4.6274 elapsed) using 29.417 MB.
>   
That's only about 0.002 sec per element of your 1764 element matrix.
That doesn't seem so bad to me.

On the other hand, the same matrix when running maxima with cmucl on a
1.6 GHz sparc finishes in 2.8 sec.

Are you using clisp? If so, perhaps you will get faster results using
some other lisp that compiles to native code, such as acl, ccl, cmucl,
ecl, gcl, lw, or sbcl.

Ray