From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Random idea about speeding up guix pull Date: Mon, 04 Sep 2017 23:56:26 +0200 Message-ID: <87r2vmgmb9.fsf@gnu.org> References: <87a82ay0c7.fsf@gnu.org> <6a936a81-683b-6ae3-cabc-79588a97194f@crazy-compilers.com> 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]:50609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dozM9-0008FU-Gh for guix-devel@gnu.org; Mon, 04 Sep 2017 17:56:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dozM4-0001VP-VQ for guix-devel@gnu.org; Mon, 04 Sep 2017 17:56:33 -0400 In-Reply-To: <6a936a81-683b-6ae3-cabc-79588a97194f@crazy-compilers.com> (Hartmut Goebel's message of "Mon, 4 Sep 2017 17:39:49 +0200") 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" To: Hartmut Goebel Cc: guix-devel Hartmut Goebel skribis: > Am 04.09.2017 um 17:01 schrieb Ludovic Court=C3=A8s: >> That=E2=80=99s roughly what =E2=80=98guix pull=E2=80=99 does nowadays, n= ow that it uses >> Guile-Git. > > Does it? I only found the call to `remote-fetch` in guix/git.scm, which > is not passed any option to. > > The trick is to use `--depth=3D1` and fetch the one, expected commit, tag > or branch-head. Oh right, it doesn=E2=80=99t do that. What it does do is maintain a cached checkout in ~/.cache/guix/pull, which makes subsequent pulls much faster. Does that make sense? Ludo=E2=80=99.