On 3/5/11 7:34 AM, Barton Willis wrote:
> -----maxima-bounces at math.utexas.edu wrote: -----
>
>> Mostly like because you're running intepreted code, not compiled. Try
>> :lisp (compile '$hsum_cl) before running the test.
> Using GCL, hsum_cl is slow with or without compiling. I discovered this
> years ago. Maybe this has been fixed in GCL, but apparently the fix isn't
> in the GCL version used by Maxima. I think Maxima has its own function for
> rational number addition that is (sometimes) much faster than
> GCL's addition--for my test about 200 times faster.
You're right. I apologize for not testing it myself. The result is
surprising. I wonder what makes gcl so slow. Do you know how maxima
does rational addition? Maybe gcl's gcd algorithm is slow?
Ray