[Top][All Lists]

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

Re: Optimising Elisp code

From: Davin Pearson
Subject: Re: Optimising Elisp code
Date: Thu, 4 Oct 2018 19:19:59 -0700 (PDT)
User-agent: G2/1.0

On Friday, October 5, 2018 at 3:15:32 PM UTC+13, Davin Pearson wrote:
> Suppose that you have a function:
> (defun foo ()
>    (bar))
> And bar is a function that has no side effects and returns 123 then calling
> the function code-optimize (the name of my optimisation routine)
> M-x code-optimize on the function foo will result in the following defun 
> (defun foo ()
>     123)

Please could you admise me about whether or not such as function is part of Gnu 
Emacs or otherwise available as a third party tool.

If not then my code will be reinventing the wheel :-(

reply via email to

[Prev in Thread] Current Thread [Next in Thread]