From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] build: pull: Compile .scm files in one process. Date: Tue, 05 Jan 2016 22:39:17 +0100 Message-ID: <871t9vn1tm.fsf@gnu.org> References: <87si4kxtge.fsf@T420.taylan> <87bnb6c0nh.fsf@gnu.org> <874mgyxhgy.fsf@T420.taylan> <877flpohu6.fsf@gnu.org> <87mvuku444.fsf@T420.taylan> <87pozgfyzt.fsf@gnu.org> <87io57tt2s.fsf@T420.taylan> <876117mnef.fsf@igalia.com> <87egfvtnbw.fsf@T420.taylan> <87y4e3l7hm.fsf@igalia.com> <87a8qjtje8.fsf@T420.taylan> <876117t0ax.fsf@gnu.org> <877flmrn2m.fsf@T420.taylan> <87a8q0ies5.fsf@gnu.org> <87fuzrlt6f.fsf@T420.taylan> <87bnafbvrs.fsf@gnu.org> <87bnaflbg2.fsf@T420.taylan> <87h9k3ab9k.fsf@gnu.org> <87zixt9sr6.fsf@T420.taylan> <877fkvvmk9.fsf@gnu.org> <8737uw5dx4.fsf@T420.taylan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGZK9-0005iv-Hb for guix-devel@gnu.org; Tue, 05 Jan 2016 16:39:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGZK4-00025t-HQ for guix-devel@gnu.org; Tue, 05 Jan 2016 16:39:25 -0500 In-Reply-To: <8737uw5dx4.fsf@T420.taylan> ("Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=22's\?\= message of "Mon, 21 Dec 2015 10:49:59 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?= Cc: guix-devel@gnu.org taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribis: > Returning to this issue after a long pause, I suddenly had a new idea, > which is to use something akin to 'use-modules' instead of 'load' on the > files. (I need a procedure and not a macro, and don't actually need to > 'use' the modules, so I use 'resolve-interface' in the patch below. > Don't know if there's a better suited procedure for this purpose.) Sounds good. > The tricky part is turning file names into module names, If that=E2=80=99s the only tricky part, I think we=E2=80=99re doing OK. ;-) > This entails the least amount of duplicated effort from all the variants > we had so far, and finishes in below 2 minutes on my machine. (I think > the only remaining duplication is the compilation of the modules during > 'resolve-interface' and their compilation via 'compile-file', and the > former cannot be done in parallel, so we could again cut the time to > below half of what it is now, if we solved that.) Not bad! I just tried it on my laptop, and it was indeed fast. > From 77ac65593a94673872c477bbbd18eb2465c76030 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Taylan=3D20Ulrich=3D20Bay=3DC4=3DB1rl=3DC4=3DB1/Kammer?= =3D > > Date: Fri, 27 Nov 2015 09:27:55 +0100 > Subject: [PATCH] build: pull: Compile .scm files in one process. > > * guix/build/pull.scm (call-with-process, report-build-progress) > (p-for-each): Remove. > (build-guix): Load and compile files in one process. Go for it! Thank you, and apologies for the looong delay! Ludo=E2=80=99.