[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prickliness of the "invalid byte code" stuff
From: |
Eli Zaretskii |
Subject: |
Re: Prickliness of the "invalid byte code" stuff |
Date: |
Tue, 18 Jun 2019 21:44:04 +0300 |
> From: Stefan Monnier <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden
> Date: Tue, 18 Jun 2019 14:11:01 -0400
>
> byte-compile-dynamic is a compilation option which makes the .elc file
> have the actual bytes of the bytecoded functions lazy-loaded (in the
> same way as the docstrings are lazy-loaded: the byte-code-function-p
> objects contain in their bytecode field a "pointer" to the
> file-and-position so the bytecodes are fecthed on-demand when the
> function is called, via `fetch-bytecode`).
>
> This was introduced at the same time as the lazy loading of docstrings.
>
> The files using this option are expected to be faster to load (because
> we load a bit less into heap).
There's also the effect on Emacs memory footprint, right?
> The downsides are:
> - it doesn't work when the .elc files are compressed.
> - it doesn't work when the .elc files are loaded via Tramp.
> - If the .elc files is re-generated after the .elc file was loaded,
> calling functions from that file typically signal an error (such as
> "invalid byte code").
The same problems happen with lazily loading doc strings, right? Or
is that different in some way?
> A `grep byte-compile-dynamic: **/*.el` seems to indicate it's currently
> used in 12 files bundled with Emacs.
Any idea why those 12 use it?
Thanks.
- Re: Prickliness of the "invalid byte code" stuff, (continued)
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, Stefan Monnier, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, T.V Raman, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, T.V Raman, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, T.V Raman, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff,
Eli Zaretskii <=
- Re: Prickliness of the "invalid byte code" stuff, Stefan Monnier, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, Stefan Monnier, 2019/06/18
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, Stefan Monnier, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, Stefan Monnier, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, T.V Raman, 2019/06/19
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/21
- Re: Prickliness of the "invalid byte code" stuff, T.V Raman, 2019/06/21
- Re: Prickliness of the "invalid byte code" stuff, Eli Zaretskii, 2019/06/21