[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disable the compiler



>Is it possible to supress the compiler during run-time?
>Our program generates and funcalls lambda-expressions during run-time. The
>consequence in MCL is - that after each lambda generation - the
>compiler is invoked. Calling the compiler wastes a lot of
>run time and consequently the run-time behavior of our application is
>not the best.
>
>Are there any possibilities in MCL to get a better run-time behavior
>for such applications?

(setq *compile-definitions* nil)

or

(defun really-eval (expression)
  (let ((*compile-definitions* nil))
    (eval expression)))

The former will make Forms typed in the Listener or evaluated from
Fred Buffers be evaluated instead of compiled. The latter gives you
more precise control.