From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Hahnfeld via "Developers list for Guile, the GNU extensibility library" Newsgroups: gmane.lisp.guile.devel Subject: Re: bug#69314: [PATCH] Speed up stage0 bootstrap build using prebuilts Date: Mon, 06 May 2024 21:12:44 +0200 Message-ID: References: <3d661a13764a90cfadc6772271da87d02e1cd833.camel@hahnjo.de> <41b70293a61ce187c698097462c16cac5d2ac40f.camel@hahnjo.de> <878r0nmggm.fsf@gnu.org> Reply-To: Jonas Hahnfeld Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-WOTRsr2bo92mHHaNP0Kf" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.52.1 Cc: guile-devel@gnu.org, 69314@debbugs.gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon May 06 21:13:38 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s43mL-0007Up-FX for guile-devel@m.gmane-mx.org; Mon, 06 May 2024 21:13:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s43m1-0007S3-BV; Mon, 06 May 2024 15:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s43lo-0007GH-Q8 for guile-devel@gnu.org; Mon, 06 May 2024 15:13:06 -0400 Original-Received: from backus.hahnjo.de ([2a03:4000:2a:2c1::1] helo=mail.hahnjo.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s43lh-0003NV-LG; Mon, 06 May 2024 15:13:03 -0400 Original-Received: from [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f] (unknown [IPv6:2a01:cb15:302:b500:478b:73c7:fdf0:1e6f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hahnjo.de (Postfix) with ESMTPSA id 8DAEC76ECE39; Mon, 06 May 2024 21:12:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hahnjo.de; s=default; t=1715022770; bh=poIQA6T3gcJegDVrGIL6EUeqTN2g+LdXSTqirMeb9BM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZL2t5sA5BioA6K41UwenyQUoEnb9FjJc2lJ/TPueSrOi+noHxkutdoSGjP4C8uzjV B4PDPcpcQWzvyX+S0t5BRlUGHhBLARPL/7RFstGSBLgvDnBtOhHn6vJXt3px3ByZ/D sFs96oiBAwo68jvCp2fwnz3uzcqsJ/grPLtd8vkQLroyScuM+H6wlQX5cNClftd9SU DESP34jO1FFWbLaRzOx9l0BhZXwfEW7i3+AlfHz+swl4pd++M52wWAXWmEeSjkqx0G UEuIaV+08NsqufI2YLCZ3jAdtyks9xjEQU9nIcRUSpSaO2+rx6ByeZ3JWPptx04n4l x018Jonezoclg== In-Reply-To: <878r0nmggm.fsf@gnu.org> Received-SPF: pass client-ip=2a03:4000:2a:2c1::1; envelope-from=hahnjo@hahnjo.de; helo=mail.hahnjo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22415 Archived-At: --=-WOTRsr2bo92mHHaNP0Kf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2024-05-06 at 11:34 +0200, Ludovic Court=C3=A8s wrote: > Hi Jonas, >=20 > Jonas Hahnfeld skribis: >=20 > > On Thu, 2024-01-04 at 11:57 +0100, Jonas Hahnfeld wrote: > > > From 95f15821c535537c7ad4fdae1988855314d56ece Mon Sep 17 00:00:00 200= 1 > > > From: Jonas Hahnfeld > > > Date: Thu, 4 Jan 2024 11:44:55 +0100 > > > Subject: [PATCH] Speed up stage0 bootstrap build using prebuilts > > >=20 > > > Use prebuilt bytecode of ice-9/eval.go and others for all of stage0, > > > it is optimized and evaluation is much faster. In my environment, > > > this speeds up the build of guile-3.0.9 from around 29 minutes to > > > only 19 minutes. > > >=20 > > > * meta/build-env.in: In stage0, prefer prebuilt bytecode over just > > > compiled stage0 files. > > > --- > > > meta/build-env.in | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > diff --git a/meta/build-env.in b/meta/build-env.in > > > index bdc88ded4..446a536af 100644 > > > --- a/meta/build-env.in > > > +++ b/meta/build-env.in > > > @@ -58,7 +58,7 @@ then > > > fi > > > export GUILE_LOAD_PATH > > > case "$GUILE_BOOTSTRAP_STAGE" in > > > - stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_builddir}/stage0:$= {top_srcdir}/prebuilt/@SCM_PREBUILT_BINARIES@" ;; > > > + stage0) GUILE_LOAD_COMPILED_PATH=3D"${top_srcdir}/prebuilt/@= SCM_PREBUILT_BINARIES@:${top_builddir}/stage0" ;; >=20 > I don=E2=80=99t understand why changing the order would make a difference= . > Surely if .go files are available under prebuilt/, they=E2=80=99ll be fou= nd, > even if that directory comes second? Or am I missing something? Yes, they are found but with lower priority. As I try to explain in the commit message (could be improved though), the same bytecode is also built during stage0, but without optimizations which makes the rest of stage0 awfully slow. Jonas --=-WOTRsr2bo92mHHaNP0Kf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEXw/5YGpL6H9VOgO2kcnDPSxhrNsFAmY5K60ACgkQkcnDPSxh rNuCqQf/f7u5Q1C01iRZIK607+8xJoC19ymgndAAK0OwuiTYcN/6tmKQmfuLnZbq EhIB/0pHMfD3W8RkRhtZm0QpFZVjLB8V9nkiM7aZ1+z61Q/FP0V3fplmn39xp49V uj95kp8hyzU1lWQ4JiDJcZH7zY3QLouH/6Wsc8J0yqYWtPHbQOnkRHkWISK+Q3oB n9HqyWUVxUUr8D2qN3Fo6jn3rzPUTH6PLvTlG01ov6avYs57Xvg7O36IF0pbI1Zu Kv8ebstE2Kt5gpT6tFfqzxXwnOS9NPsObHP7T1iPnWjC+D/Gt92gnr3hy/r3gaDn Tux2GdAnADUBmfbiO9n682tbK1zbhg== =pzXW -----END PGP SIGNATURE----- --=-WOTRsr2bo92mHHaNP0Kf--