From: Christopher Schmidt <christopher@ch.ristopher.com>
To: help-gnu-emacs@gnu.org
Cc: Perry Smith <pedzsan@gmail.com>
Subject: Re: Byte Compile Question
Date: Fri, 27 Jul 2012 16:12:17 +0100 (BST) [thread overview]
Message-ID: <87a9ylck6r@ch.ristopher.com> (raw)
In-Reply-To: <3D93829C-05BC-4BF3-94D2-716E8443DE9A@gmail.com> (Perry Smith's message of "Fri, 27 Jul 2012 09:44:19 -0500")
[-- Attachment #1: Type: text/plain, Size: 637 bytes --]
Perry Smith <pedzsan@gmail.com> writes:
> I have the belief that byte compiling only helps with loading files
> and that once they are loaded, the code will execute at the same
> speed.
>
> Is that correct?
No. Check (info "(elisp)Byte Compilation").
> Byte compiling all my personal files is a bit awkward for a couple of
> reasons. I considering not doing it any more but wanted to know all
> the tradeoffs
Give it a try. Your code executes faster and the compiler warnings are
useful in most cases.
You can implement automatic byte compilation by customising
load-source-file-function. Here is my auto-compile implementation.
[-- Attachment #2: auto-compile.el --]
[-- Type: application/emacs-lisp, Size: 2983 bytes --]
[-- Attachment #3: Type: text/plain, Size: 21 bytes --]
Christopher
next prev parent reply other threads:[~2012-07-27 15:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 14:44 Byte Compile Question Perry Smith
2012-07-27 15:12 ` Christopher Schmidt [this message]
2012-07-27 15:18 ` Drew Adams
[not found] <mailman.5757.1343400279.855.help-gnu-emacs@gnu.org>
2012-07-27 16:04 ` Pascal J. Bourguignon
2012-07-31 12:52 ` Xah Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9ylck6r@ch.ristopher.com \
--to=christopher@ch.ristopher.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pedzsan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).