From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Optimising Elisp code Date: Thu, 4 Oct 2018 19:15:30 -0700 (PDT) Message-ID: <638fb7dc-6fc5-4645-8793-97a00038a3a8@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1538705925 4446 195.159.176.226 (5 Oct 2018 02:18:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2018 02:18:45 +0000 (UTC) Injection-Date: Fri, 05 Oct 2018 02:15:30 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 04:18:41 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8FhR-0000ym-L9 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2018 04:18:41 +0200 Original-Received: from localhost ([::1]:60862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8FjT-0000zv-2d for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 22:20:47 -0400 X-Received: by 2002:a37:6687:: with SMTP id a129-v6mr6346606qkc.7.1538705730920; Thu, 04 Oct 2018 19:15:30 -0700 (PDT) X-Received: by 2002:a0c:9ad2:: with SMTP id k18-v6mr109689qvf.1.1538705730824; Thu, 04 Oct 2018 19:15:30 -0700 (PDT) Original-Path: usenet.stanford.edu!m93-v6no123994qte.0!news-out.google.com!i36-v6ni2345qti.0!nntp.google.com!m93-v6no123991qte.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=202.124.123.171; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 202.124.123.171 Original-Xref: usenet.stanford.edu gnu.emacs.help:223993 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118120 Archived-At: 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)