load(draw) is very slow (takes about 13 seconds)



El mi?, 27-03-2013 a las 09:51 +0100, Max Cohen escribi?:
> My Apologies, I take it back. 
> I was using two maxima versions at the same time and the compiled
> files landed in the directory of the wrong maxima version.
> package draw now has a decent load time:
> "Evaluation took 0.4290 seconds (0.4280 elapsed) using 30.350 MB."
> 
> thanks a lot!
> Max

Max,

I've just commited some changes to the git repository:

http://sourceforge.net/p/maxima/code/ci/59a1f4b0c9089212f698ec5f08ffe7d1fff73cea/tree/share/draw/

Move these files to your local share/draw folder:

draw.lisp
draw.system
grcommon.lisp
gnuplot.lisp
vtk.lisp

My old computer, with Maxima+sbcl, takes about 10.901s to compile
package draw the first time I write load("draw"). In subsequent
sessions, it only takes 0.216s, about 50 times faster.

Both renderers, Gnuplot and Vtk, work as expected, in clisp and sbcl. No
other Lisp compilers were tested.

In clisp: compilation takes 2.20s; subsequent loads, 0.14s.

--
Mario