unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Very slow check/nativecomp build
@ 2022-02-20 16:46 Lars Ingebrigtsen
  2022-02-20 17:10 ` Alan Mackenzie
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-20 16:46 UTC (permalink / raw)
  To: emacs-devel; +Cc: Alan Mackenzie

I first noticed this yesterday, and I don't know when it started, but
I'm pretty sure the compilation speed was normal some days ago, so I've
added Alan to the CCs because of the recent sym-with-pos change that was
applied a few days ago (but it may have nothing to do with anything).

With:

./configure --with-native-compilation --enable-checking=all

a make bootstrap -j16 takes:

real	15m46.201s
user	113m21.805s
sys	7m29.174s

It used to take 5 minutes on this machine.  I'm pretty sure?  Is anybody
else also seeing this, or am I totally misremembering how long it takes?

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




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

* Re: Very slow check/nativecomp build
  2022-02-20 16:46 Very slow check/nativecomp build Lars Ingebrigtsen
@ 2022-02-20 17:10 ` Alan Mackenzie
  2022-02-20 17:35   ` Stefan Monnier
  2022-02-20 18:02   ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2022-02-20 17:10 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

Hello, Lars.

On Sun, Feb 20, 2022 at 17:46:38 +0100, Lars Ingebrigtsen wrote:
> I first noticed this yesterday, and I don't know when it started, but
> I'm pretty sure the compilation speed was normal some days ago, so I've
> added Alan to the CCs because of the recent sym-with-pos change that was
> applied a few days ago (but it may have nothing to do with anything).

> With:

> ./configure --with-native-compilation --enable-checking=all

> a make bootstrap -j16 takes:

> real	15m46.201s
> user	113m21.805s
> sys	7m29.174s

> It used to take 5 minutes on this machine.  I'm pretty sure?  Is anybody
> else also seeing this, or am I totally misremembering how long it takes?

With the --enable-checking option?  Are you sure you're not remembering
it with just --with-native-compilation?  --enable-checking makes things
_much_ slower.

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

-- 
Alan Mackenzie (Nuremberg, Germany).



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

* Re: Very slow check/nativecomp build
  2022-02-20 17:10 ` Alan Mackenzie
@ 2022-02-20 17:35   ` Stefan Monnier
  2022-02-20 18:02   ` Lars Ingebrigtsen
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2022-02-20 17:35 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: Lars Ingebrigtsen, emacs-devel

> --enable-checking makes things _much_ slower.

FWIW this has not always been the case, and it should be considered as
a bug (we' (well, Paul, mostly) have/has fixed such problems in the
past).

It's inevitable that it makes things slower, of course, but not by a factor 3.


        Stefan




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

* Re: Very slow check/nativecomp build
  2022-02-20 17:10 ` Alan Mackenzie
  2022-02-20 17:35   ` Stefan Monnier
@ 2022-02-20 18:02   ` Lars Ingebrigtsen
  2022-02-20 18:10     ` Eli Zaretskii
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-20 18:02 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

Alan Mackenzie <acm@muc.de> writes:

> With the --enable-checking option?  Are you sure you're not remembering
> it with just --with-native-compilation?  --enable-checking makes things
> _much_ slower.

Yes, I must be misremembering.  nativecomp without checking still takes
about five minutes, and I checked with a nativecomp build from a couple
months back -- it also takes about 14 minutes with nativecomp +
checking.

So I guess it's been a long while since I tried a build that had both
nativecomp and checking.

Sorry for the noise.

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



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

* Re: Very slow check/nativecomp build
  2022-02-20 18:02   ` Lars Ingebrigtsen
@ 2022-02-20 18:10     ` Eli Zaretskii
  2022-02-20 18:35       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-02-20 18:10 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: acm, emacs-devel

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 20 Feb 2022 19:02:58 +0100
> Cc: emacs-devel@gnu.org
> 
> Alan Mackenzie <acm@muc.de> writes:
> 
> > With the --enable-checking option?  Are you sure you're not remembering
> > it with just --with-native-compilation?  --enable-checking makes things
> > _much_ slower.
> 
> Yes, I must be misremembering.  nativecomp without checking still takes
> about five minutes, and I checked with a nativecomp build from a couple
> months back -- it also takes about 14 minutes with nativecomp +
> checking.

As Stefan points out, this shouldn't happen.  So we should try and
find the reason for such slowdown from using --enable-checking.



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

* Re: Very slow check/nativecomp build
  2022-02-20 18:10     ` Eli Zaretskii
@ 2022-02-20 18:35       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-20 18:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: acm, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> As Stefan points out, this shouldn't happen.  So we should try and
> find the reason for such slowdown from using --enable-checking.

I wondered whether the 3x increase with --enable-checking=all was a
nativecomp phenomenon, but it seems to be the same without nativecomp.
It takes 2:30 to built the trunk with just ./configure, and about 8
minutes with checking.

I tried the same in emacs-28, and it's much the same story there:
Without checking, it's 2:20, and with checking it's 6:50.  So it's not a
new phenomenon that checking adds a multiplier to the build time, but it
seems to be worsening somewhat.

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



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

end of thread, other threads:[~2022-02-20 18:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-20 16:46 Very slow check/nativecomp build Lars Ingebrigtsen
2022-02-20 17:10 ` Alan Mackenzie
2022-02-20 17:35   ` Stefan Monnier
2022-02-20 18:02   ` Lars Ingebrigtsen
2022-02-20 18:10     ` Eli Zaretskii
2022-02-20 18:35       ` Lars Ingebrigtsen

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