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

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

Re: Native compilation by default?: Was [Re: stats say SBCL is 78 875 %


From: Madhu
Subject: Re: Native compilation by default?: Was [Re: stats say SBCL is 78 875 % faster than natively compiled Elisp
Date: Mon, 27 Feb 2023 14:12:00 +0530

* Stefan Monnier via Users list for the GNU Emacs text editor 
<jwv8rglm4oz.fsf-monnier+emacs@gnu.org> :
Wrote on Sat, 25 Feb 2023 23:32:43 -0500:

>> (byte-compile-file "fib.el" t)  ; doesn't work
>> (load-file "fib.elc")           ; doesn't work
>> (load "/dev/shm/fib.elc" nil nil t) ; doesn't work
>
> We want the users to be able to load a `.elc` file even if a `.eln` file
> has been generated.  The way the users do that is by giving to
> `load` the file name *with* the `.elc` extension.  Of course, they can
> also load the `.eln` file by specifying that file explicitly as well.
>
> If you want to load "the most efficient option available", then just
> don't specify any extension, and Emacs will load the `.el`, `.elc`,
> or `.eln` file according to what it finds.


All that is fine, but the question was about producing the eln file in
the first place.  The documentation and the information posted here
indicated it will be produced when the elc file is loaded.

That explicitly does not happen in those cases I enumerated above, and
in some other cases.

The backstory is I wanted to test something without putting it
load-path.





reply via email to

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