unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* native comp and user init files
@ 2021-04-28 20:00 Sean Whitton
  2021-04-28 20:07 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Whitton @ 2021-04-28 20:00 UTC (permalink / raw)
  To: emacs-devel

Hello,

Trying out nativecomp for the first time today.  I noticed that .eln
files corresponding to the variuos .el files I have under ~/.emacs.d,
both init.el and some others, are not appearing in
~/.emacs.d/eln-cache.  Shouldn't those files get async compiled too?  If
not, can I turn it on somehow?

Thanks!

-- 
Sean Whitton



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: native comp and user init files
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2021-04-28 20:07 UTC (permalink / raw)
  To: Sean Whitton; +Cc: emacs-devel

Sean Whitton <spwhitton@spwhitton.name> writes:

> Hello,
>
> Trying out nativecomp for the first time today.  I noticed that .eln
> files corresponding to the variuos .el files I have under ~/.emacs.d,
> both init.el and some others, are not appearing in
> ~/.emacs.d/eln-cache.  Shouldn't those files get async compiled too?  If
> not, can I turn it on somehow?

Hi Sean,

only file byte compiled and loaded are automatically native compiled.

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.

Ciao!

  Andrea



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: native comp and user init files
  2021-04-28 20:07 ` Andrea Corallo via Emacs development discussions.
@ 2021-04-28 20:56   ` Sean Whitton
  0 siblings, 0 replies; 3+ messages in thread
From: Sean Whitton @ 2021-04-28 20:56 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: emacs-devel

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-28 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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