emacs-devel
[Top][All Lists]
Advanced

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

Re: native comp and user init files


From: Sean Whitton
Subject: Re: native comp and user init files
Date: Wed, 28 Apr 2021 13:56:20 -0700
User-agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu)

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 via email to

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