unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: Akib Azmain Turja <akib@disroot.org>, guix-devel@gnu.org
Subject: Re: First guix pull is too costly
Date: Tue, 28 Jun 2022 18:59:33 +0200	[thread overview]
Message-ID: <86czesenbe.fsf@gmail.com> (raw)
In-Reply-To: <Yrrz6pWksiEFVRPY@3900XT>

Hi Efraim,

On Tue, 28 Jun 2022 at 15:28, Efraim Flashner <efraim@flashner.co.il> wrote:

> There's already a copy of the guix source code at
> /run/current-system/profile/share/guile/site/3.0/guix, what if we "just"
> switched the new-user/new-cache experience to:

This is only for Guix System and not on foreign distro, no?


> cp -r /run/current-system/profile/share/guile/site/3.0/guix/*
> ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
> cd ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
> git init
> git remote add origin https://git.savannah.gnu.org/git/guix.git
> git fetch
> git branch --set-upstream-to=origin/master

Depending on the network, the first “guix pull” is often considered as
slow [1]; especially running the command for each new user: each time,
it is a full Git clone in ~/.cache/guix/checkouts of ~400MB, if I read
correctly.

Instead of cloning each time from Savannah, maybe the clone could happen
from the cache of ’root’ and only fetch from Savannah for populate by
recent commit the cache of the regular user.  It would save some network
traffic.


1: <https://yhetil.org/guix/87ft403kol.fsf@ambrevar.xyz>


Cheers,
simon


  reply	other threads:[~2022-06-28 17:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28  8:04 First guix pull is too costly Akib Azmain Turja
2022-06-28 10:05 ` bokr
2022-06-28 11:23 ` zimoun
2022-06-28 12:28   ` Efraim Flashner
2022-06-28 16:59     ` zimoun [this message]
2022-07-01 12:51       ` Ludovic Courtès
2022-07-01 15:25         ` zimoun
2022-06-28 12:49   ` Akib Azmain Turja
2022-06-28 17:09     ` zimoun
2022-06-28 17:40       ` Akib Azmain Turja
2022-07-01 12:52   ` Ludovic Courtès
2022-07-07  9:01     ` Giovanni Biscuolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86czesenbe.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=akib@disroot.org \
    --cc=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).