help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacs evaluating


From: Xah Lee
Subject: Re: emacs evaluating
Date: Sat, 7 Feb 2009 13:25:41 -0800 (PST)
User-agent: G2/1.0

On Feb 7, 12:55 pm, Evans Winner <tho...@timbral.net> 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.

• 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
∑ http://xahlee.org/

reply via email to

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