From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Random idea about speeding up guix pull Date: Sun, 3 Sep 2017 14:38:57 +0000 Message-ID: <20170903143857.2ch5rjzbepzivo22@abyayala> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sdqehobz5kxi5y5r" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doW3Y-0003e1-F9 for guix-devel@gnu.org; Sun, 03 Sep 2017 10:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doW3T-0000QK-NQ for guix-devel@gnu.org; Sun, 03 Sep 2017 10:39:24 -0400 Received: from aibo.runbox.com ([91.220.196.211]:56150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doW3T-0000Hf-GD for guix-devel@gnu.org; Sun, 03 Sep 2017 10:39:19 -0400 Content-Disposition: inline In-Reply-To: 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 --sdqehobz5kxi5y5r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hartmut Goebel transcribed 15K bytes: > Hi, >=20 > I've seen in Ludo's slides that speeding up guix pull is topic. Here is > a random idea on the: >=20 > "git pull" can probably be speed up by using something like >=20 > git init . > git remote add =E2=80=A6 > git fetch --depth=3D1 origin master > git checkout FETCH_HEAD >=20 > This will only download the top-most commit resp. commit-state. >=20 > From my mostly up-t-date clone, this method downloads only 1559 objects > and 'du -s .git' reports 13M =E2=80=93 compared to "git pull" downloading= 133284 > objects and taking 49M. Yes, that would make many git clones take less space. > We could use this for downloading sourcce-code via git (git-download). Andy Wingo has proposed this in the past and had a patch which once upon a time in 2015 worked. If you are motivated enough to adjust it, it's still on the list but git-download and the other file it touches has been changed very much since 2015. > --=20 > Regards > Hartmut Goebel >=20 > | Hartmut Goebel | h.goebel@crazy-compilers.com | > | www.crazy-compilers.com | compilers which you thought are impossible | >=20 pub RSA 4096/BF773B65 2013-10-05 Hartmut Goebel > sub RSA 4096/DDEAFF1A 2013-10-05 > >=20 --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --sdqehobz5kxi5y5r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlmsFAEACgkQ4i+bv+40 hYhvGA//f5e6qlSillgp1T370793Yfva+GYv8lzuRsSjxB/2K1GEJfDwdu4o2lE6 X8i4bkmJi2soG9Z6GEM+GtUxI9fU/GJCYfBTUiSXHCjIJH96PwEFDanvwgSR6yek dwqlncKtpSTH5bKXVbrHlO7fGv7TGG2z/dlB0aOFtQGK/zXExPnz8bDQwi0uxV/c RmfSEB4Tvvv9Bn9kUb9IDMo1MjyOGqBpIGnY5hufy8zLUpnuiVmRUGuD683hawE4 JfliATJbc4aighn8/0eBvRZS8fxToxlU8FxS6C6RcG1+FkF5nd/zgXt9mE4hR5Nm ZXAm0pmWThN+bk6uIGh7Z9CpNRdApZPIFMrugYzByMZKd0vBs0QoWrlYQ+WLcNFh 5I4s5wtkM9tv/SpGPnbi7zrdMnG+M4Pfdb0ZdjmvYRgyJR5EIQSLVMPu30Gj7Csh dCZDRJJ6d7BVZ6TRrPYej68jhn9zMdl0Bcc/r705qEXB86AI/HxB7UhpspTpsnGD p+pmVdm+PIw3kKhmD3uq03ORIgtwSSHeCttYxcgjbO7Q/DLImbbK15qsJrQlyZ93 yPTbKEWEp2aT7tTEraXBMdYO+2crbaiyaMJ8JmLw7QhO0K8fsyfB4T6NrxbGlOpv /rRyg+KreBPzRAstqL4BNQH1ed5wib3HqE/Ywmme1GkhmJXc+9A= =quOf -----END PGP SIGNATURE----- --sdqehobz5kxi5y5r--