unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sean Whitton <spwhitton@spwhitton.name>
To: Andrea Corallo <akrl@sdf.org>
Cc: emacs-devel@gnu.org
Subject: Re: native comp and user init files
Date: Wed, 28 Apr 2021 13:56:20 -0700	[thread overview]
Message-ID: <878s52yvpn.fsf@melete.silentflame.com> (raw)
In-Reply-To: <xjffszayxzq.fsf@sdf.org>

Hello Andrea,

On Wed 28 Apr 2021 at 08:07PM GMT, Andrea Corallo wrote:

> only file byte compiled and loaded are automatically native compiled.

Ah.

> That said unless you are doing any computation with code in your
> .emacs I guess you'll not be able to apretiate any speed-up.

There are quite a few function definitions in there, though I haven't
measured how computationally intensive they actually are.

One annoyance with arranging to have .el files in .emacs.d bytecompiled
is you need some mechanism to ensure they get recompiled when your Emacs
build changes, e.g. when you rebuild Emacs from git.

But cached .eln files are already tied to the build of Emacs which
generated them, right?  So if I were to call `native-compile' on each
.el file under ~/.emacs.d I wouldn't have to worry about removing the
compiled output when I rebuild Emacs, since a different Emacs build
would ignore the old .eln files?  Does that sound plausible?

-- 
Sean Whitton



      reply	other threads:[~2021-04-28 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 20:00 native comp and user init files Sean Whitton
2021-04-28 20:07 ` Andrea Corallo via Emacs development discussions.
2021-04-28 20:56   ` Sean Whitton [this message]

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=878s52yvpn.fsf@melete.silentflame.com \
    --to=spwhitton@spwhitton.name \
    --cc=akrl@sdf.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).