unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: acorallo@gnu.org, stephen.molitor@icloud.com,
	stefankangas@gmail.com, 64712@debbugs.gnu.org
Subject: bug#64712: 29.0.92; Emacs 29 with native compilation compiles cl-loaddefs.el on every startup
Date: Wed, 06 Sep 2023 16:03:40 +0300	[thread overview]
Message-ID: <83tts71mj7.fsf@gnu.org> (raw)
In-Reply-To: <4d07089a-dd98-d140-8ce0-d206dd37a5fe@gutov.dev> (message from Dmitry Gutov on Wed, 6 Sep 2023 15:26:20 +0300)

> Date: Wed, 6 Sep 2023 15:26:20 +0300
> Cc: acorallo@gnu.org, stephen.molitor@icloud.com, 64712@debbugs.gnu.org
> From: Dmitry Gutov <dmitry@gutov.dev>
> 
> On 03/09/2023 08:15, Eli Zaretskii wrote:
> >> I personally can't see that it would make much of a difference if we
> >> have them or not, but maybe I'm missing something.
> > If nothing else, it will slow down startup (because each .eln files
> > needs to be loaded via dlopen, as opposed to .elc that is dumped into
> > the pdumper file), albeit insignificantly.  But if we do this with all
> > the autoload files we have, that could slow down in a more tangible
> > ways.  So basically we have here two minor annoyances: you can solve
> > one, but then you "gain" the other one.
> 
> So you suppose
> 
>    - Findinb .eln in its load path
>    - dlopen-ing it
> 
> can be slower than
> 
>    - Looking for .eln in its load path, not finding it
>    - Extracting cl-loaddefs.el from cl-loaddefs.el.gz
>    - Loading it
> 
> ?

No.  But that's not what happens.  What does happen in the second case
is that we load the .elc file, and then, asynchronously and in a
separate Emacs session, try to native-compile the .el file.  So this:

>    - Looking for .eln in its load path, not finding it
>    - Extracting cl-loaddefs.el from cl-loaddefs.el.gz
>    - Loading it

happens in parallel with the Emacs session running, not sequentially.
And if the .elc file is in the pdumper file, we don't even load it,
it's already loaded.





      reply	other threads:[~2023-09-06 13:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-18 14:47 bug#64712: 29.0.92; Emacs 29 with native compilation compiles cl-loaddefs.el on every startup Stephen Molitor via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-18 16:34 ` Eli Zaretskii
2023-07-27  1:50   ` Dmitry Gutov
2023-07-27  5:43     ` Eli Zaretskii
2023-07-27  9:03       ` Andrea Corallo
2023-07-27  9:17         ` Eli Zaretskii
2023-07-27  9:56           ` Andrea Corallo
2023-07-27 13:36         ` Dmitry Gutov
2023-07-27 13:52           ` Eli Zaretskii
2023-07-27 16:12             ` Andrea Corallo
2023-07-27 16:25               ` Eli Zaretskii
2023-09-02 21:50               ` Stefan Kangas
2023-09-03  5:15                 ` Eli Zaretskii
2023-09-05 23:11                   ` Stefan Kangas
2023-09-06 11:29                     ` Eli Zaretskii
2023-09-06 12:09                       ` Stefan Kangas
2023-09-06 12:26                   ` Dmitry Gutov
2023-09-06 13:03                     ` Eli Zaretskii [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=83tts71mj7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=64712@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=dmitry@gutov.dev \
    --cc=stefankangas@gmail.com \
    --cc=stephen.molitor@icloud.com \
    /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).