How to speed up programs by compiling



Well, I guess I am on my own with this.  I will try to write my own version of this function directly in Lisp bypassing the 
compiler.

Rich

----- Original Message ----- 
From: "Richard Hennessy" <rich.hennessy at verizon.net>
To: "Barton Willis" <willisb at unk.edu>
Cc: "Maxima List" <maxima at math.utexas.edu>; <maxima-bounces at math.utexas.edu>
Sent: Friday, September 04, 2009 2:24 PM
Subject: Re: [Maxima] How to speed up programs by compiling


I have noticed that in the lisp code there are a lot of calls to simplify, maybe some of them are unnecessary?  Also mode_declare
does help by improving speed to about 2/3 of the original execution time, but integrate was about 6 times faster.  The exponents are
numbers usually so I declared them as number.  Other variables are possibly symbols so I said mode_declare([x1,x2,...], any).



----- Original Message ----- 
From: "Barton Willis" <willisb at unk.edu>
To: "Richard Hennessy" <rich.hennessy at verizon.net>
Cc: "Maxima List" <maxima at math.utexas.edu>; <maxima-bounces at math.utexas.edu>
Sent: Friday, September 04, 2009 1:01 PM
Subject: Re: [Maxima] How to speed up programs by compiling


Try searching the mailing list archives using something like "compile
speed up"; for example

     http://www.math.utexas.edu/pipermail/maxima/2006/003524.html

An easy way to search the Maxima mailing list is from

    http://maxima.sourceforge.net/maximalist.html

Barton

maxima-bounces at math.utexas.edu wrote on 09/04/2009 11:14:25 AM:

> [image removed]
>
> [Maxima] How to speed up programs by compiling
>
> Richard Hennessy
>
> to:
>
> Maxima List
>
> 09/04/2009 11:14 AM
>
> Sent by:
>
> maxima-bounces at math.utexas.edu
>
> How can you make a program run faster by compiling?  I have tried to
> compile functions in pw.mac and it does not improve speed even
> though I thought it should.  For example I wrote a simple polynomial
> integrator program which I was going to put into pw.mac because
> I thought an integrate program that can only do polynomials would be
> faster than one that has to consider all possibilities but when
> I test it it is still slower the Maximas' integrate.  I tried
> compiling it and got no improvement.  What am I doing wrong?
>
> Rich
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima