[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random idea about speeding up guix pull
From: |
Ludovic Courtès |
Subject: |
Re: Random idea about speeding up guix pull |
Date: |
Tue, 05 Sep 2017 16:33:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hartmut Goebel <address@hidden> skribis:
> Am 04.09.2017 um 23:56 schrieb Ludovic Courtès:
>> What it does do is maintain a cached checkout in ~/.cache/guix/pull,
>> which makes subsequent pulls much faster.
>
> Summary ( TL;DR):
>
> * "guix pull" should use "git fetch master"
> * "guix download" we can keep the current behaviour
>
> I did a series of tests
>
> * - "fetch" without any argument will fetch *all* data from *all*
> branches.
> * - "fetch master" only fetches data living on "master", other
> branches are ignored
>
> I compared the data fetched for a repo with status of 6bd1c41e8
> (yesterday 05:29):
>
> * - "fetch" fetches 1000K
> * - "fetch master" fetches 755K
> * - "fetch --depth=1 master" fetches 588K (but see below)
Thanks for the detailed analysis!
The problem is that libgit2 doesn’t support shallow clones, and it’s
unclear whether it will support it in the future:
https://github.com/libgit2/libgit2/issues/3058
:-/
Ludo’.