From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: [PATCH] build: Speed up .go compilation. Date: Sun, 10 Jan 2016 14:34:12 +0100 Message-ID: <87twmlwobv.fsf@T420.taylan> References: <87lha3rx04.fsf@T420.taylan> <87mvsgxpef.fsf@T420.taylan> <87ziwgf1b4.fsf@gnu.org> <87egdqy24m.fsf@T420.taylan> <87bn8u76tl.fsf@gnu.org> 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]:50536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIG8O-0000hW-65 for guix-devel@gnu.org; Sun, 10 Jan 2016 08:34:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIG8N-00044K-DH for guix-devel@gnu.org; Sun, 10 Jan 2016 08:34:16 -0500 In-Reply-To: <87bn8u76tl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 09 Jan 2016 22:59:18 +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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribi= s: > >> It should have the same improvement as 'guix pull' since it does >> basically the same thing. I measured to make things concrete, and on my >> machine the run time of 'make -j4' decreases from ~26m to ~6m. > > On my 4-core machine, it takes a bit less than 2mn. OK, this is weird. Something I did, sadly I don't know anymore what, seems to have lead to .go files related to Guix's source tree being cached in my $XDG_CACHE_HOME, after which running 'make -j4' in a clean (but not newly cloned) repo indeed took only about 3 minutes. I noticed from lines like: ;;; note: source file ./guix/config.scm ;;; newer than compiled /home/taylan/.cache/guile/ccache/2.0-LE-8-2.0= /home/taylan/src/guix/build/guix/config.scm.go Could it be that the same is the case for you? Is this actually normal and I've been missing out the whole time? :-) Maybe something in my setup/workflow while building guix gets in the way of proper caching. Taylan