From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacs evaluating Date: Sat, 7 Feb 2009 13:25:41 -0800 (PST) Organization: http://groups.google.com Message-ID: <035e7364-1d7f-43a9-9b7b-f8d401f1cf78@p2g2000prn.googlegroups.com> References: <87prhufhzk.fsf@galatea.local> <868woinf00.fsf@timbral.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234119071 7535 80.91.229.12 (8 Feb 2009 18:51:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 18:51:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 19:52:26 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWElT-00040j-7B for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 19:52:23 +0100 Original-Received: from localhost ([127.0.0.1]:39986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWEk9-0006YF-Sl for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 13:51:01 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!postnews.google.com!p2g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1234041941 20117 127.0.0.1 (7 Feb 2009 21:25:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 7 Feb 2009 21:25:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000prn.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166679 X-Mailman-Approved-At: Sun, 08 Feb 2009 13:34:35 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62007 Archived-At: On Feb 7, 12:55 pm, Evans Winner wrote: > p...@informatimago.com (Pascal J. Bourguignon) writes: > > To compile a function: (byte-compile 'your-function) C-x > C-e > > I had never thought of this. I think I really must not > understand compilation very clearly. I think I grasp that > an entire file full of functions will load faster if it is > compiled first, but what does interactively compiling a > single function buy me? Does it exist in a different form > in the image when you do that? Does it execute faster? > (This is not a facetious question, by the way.) Er, maybe > it has to do with debugging macros or something...? it'll speed up loading, and also execution. =E2=80=A2 Speed of Byte-Code - GNU Emacs Lisp Reference Manual http://xahlee.org/elisp/Speed-of-Byte_002dCode.html you can try to test the code in that page (which contain comparison that ran in 1994!) there are some packages that's over 10k lines. e.g. js2, nxml, ejacs... you can also try the speed comparison using these ... Xah =E2=88=91 http://xahlee.org/ =E2=98=84