unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Compilation speed
Date: Fri, 07 Aug 2020 08:55:21 +0200	[thread overview]
Message-ID: <87mu377xnq.fsf@gnus.org> (raw)
In-Reply-To: <jwvk0ybzb8h.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 06 Aug 2020 18:14:20 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> 00:00:50 Loading emacs-lisp/byte-run (source)...
>> 00:00:50 Loading emacs-lisp/backquote (source)...
>> [...]
>> 00:01:02 Dump complete
>>
>> And dumping takes 12 seconds.
>
> For re-builds, this is also a very significant chunk, especially since
> we often do it twice.

Yes, that's true.

>> This seems to proceed in parallell until we reach:
>>
>> 00:01:17   INFO     Scraping files for loaddefs.el... 
>> [...]
>> 00:01:54   INFO     Scraping files for loaddefs.el...done
>>
>> Which is single-threaded and takes a whopping 37 seconds!  Could that
>> possibly be parallelised in some way?
>
> IIRC this should be generated in parallel with the compilation of the
> preloaded files.  Not sure why it's not the case.

On my laptop (which is much slower), the loaddefs generation often runs
in parallel with other things (well, sort of -- it's usually completed
about a quarter of what it's doing when make runs out of other things to
schedule).

> Note that the native-compiler should solve a significant part of this
> problem (by increasing the amount of time spent compiling the .elc files
> in parallel ;-)

:-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



  reply	other threads:[~2020-08-07  6:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 15:20 Compilation speed Lars Ingebrigtsen
2020-08-06 19:07 ` Paul Eggert
2020-08-19  9:25   ` Mario Lang
2020-08-19  9:43     ` tomas
2020-08-19 12:37       ` Ergus
2020-08-06 22:14 ` Stefan Monnier
2020-08-07  6:55   ` Lars Ingebrigtsen [this message]
2020-08-07 16:26   ` Andrea Corallo via Emacs development discussions.
2020-08-10 14:33 ` Arthur Miller
2020-08-12  2:11   ` Paul Eggert
2020-08-12 12:53     ` Arthur Miller
2020-08-12 16:08       ` Stefan Monnier
2020-08-12 16:59       ` Paul Eggert

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=87mu377xnq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).