[Newbie] Plot problem (Feature suggestion)



>>>>> "Andrei" == Andrei Zorine  writes:

    Andrei> I'm not answering this question, but wondering if there's a need for a
    Andrei> special switch to turn on/off compilation of functions in quad_qagi-like
    Andrei> functions? When plot2d calls quad_qagi many many times it's slower to
    Andrei> compile-function each time than to use it 'as is'. At the beginning of
    Andrei> $quad_qagi there's (let* (... (f (compile nil (coerse-float-fun ...));
    Andrei> erasing this (compile ...) stuff speeds up plotting time. Maybe put a 

That would imply that quad_qagi would be faster without compiling than
with.  I think it was done that way on the assumption that the
integrand would be called many times to perform the integration, so
the function is compiled.  If that's not really necessary, why not
just remove the compilation completely?

I think I measured runtime with and without compiling, and compiling
was faster.  But perhaps that was true for my tests but not in
general.

Ray