From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qHiIASX+fGPZogAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 17:51:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iNrEACX+fGPe+gAAG6o9tA (envelope-from ) for ; Tue, 22 Nov 2022 17:51:49 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 98C652FC16 for ; Tue, 22 Nov 2022 17:51:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxWUT-0006I4-1l; Tue, 22 Nov 2022 11:51:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxWUR-0006Fr-5B for guix-devel@gnu.org; Tue, 22 Nov 2022 11:51:19 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxWUP-0002ae-4K for guix-devel@gnu.org; Tue, 22 Nov 2022 11:51:18 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0D6A33200A3D for ; Tue, 22 Nov 2022 11:51:13 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute4.internal (MEProxy); Tue, 22 Nov 2022 11:51:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1669135873; x=1669222273; bh=56t3dAMPlzx7fc0tnIkOQGXlm hcsv4W2BVqu/Ug12wM=; b=D9r8enMYcNbFJOu1+Cm7tKy/FOIo8TshOBpAQe70I y85n95jFguC/vBQpMmhtOXh5S69Bs6k6iXja+QCFWNg8XA/QYEiafzZDA/sHjkkX nbcXqVqRdz7Gpl6z8m9+opWNDwCQyJC9uV2GxR16AuxrvqXdgBqC7FOj6Cu/U1fk BBW9jysdFZMh5T/h3oF9tGAAuKfj6p3c5xlT6PD1Tn0nRxcizCqbaftmgn6yukL0 316PlO0fTUE8n0GdrUztWF9lSnoi0I20zdxNdktlPFAQ2TWp0ddJ61+rtTOueX9/ 9QaUu+tnBpseqrHMaM0cghlw/7YAJwM/XB2KyeEj9to7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1669135873; x=1669222273; bh=5 6t3dAMPlzx7fc0tnIkOQGXlmhcsv4W2BVqu/Ug12wM=; b=ZTJ33Vt/o9ivqeKIi +3JFDGD52mgTcU4+p0km+Y1rweKX46m2L3OzD74Arp2Aaajb3Kp7YNvADlkx2kLb zb5v2R4aem3cwA+9u0BKLLS4clWntG5gm+kD/sGLXqCHtcSNHTEepiVP59aVg2yC NZQpdvnjJrA4uKHZ6XkNpZqJwtCWTjiw8YgycnIO9/XbDxIRegrCEr07NbvVrZwt or/qInegKX8n00YReJSnUHaeTgQneDyhTZZS+o+PQA+OvOSdRBCkX+sWSVAv4atu xlawVO39EeifZbk9kV+e+KQ7jDf10WD862C/mP2aGbT7s0kOeDJ4X69I5/EpfCCN 8qNcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrheelgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgsehtqh ertderreejnecuhfhrohhmpedfrfhhihhlihhpucfotgfirhgrthhhfdcuoehphhhilhhi phesphhhihhlihhpmhgtghhrrghthhdrtghomheqnecuggftrfgrthhtvghrnhepleeite evfedtffeggeffudegkeegvedugffhteelgfdvgefhuedvhfdtuddtgffgnecuffhomhgr ihhnpehgihhthhhusgdrtghomhdpughulhifihgthhdrihhopdhrrggtkhgvthdqlhgrnh hgrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepphhhihhlihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1F115C60091; Tue, 22 Nov 2022 11:51:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: <49015314-2158-466b-a8ac-41abed84c5f1@app.fastmail.com> In-Reply-To: <86leo3c81x.fsf@gmail.com> References: <87cz9fpw4x.fsf@gmail.com> <86leo3c81x.fsf@gmail.com> Date: Tue, 22 Nov 2022 11:49:26 -0500 From: "Philip McGrath" To: "Brian Cully" Subject: Re: RFC: libgit2 is slow/inefficient; switch to git command? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.20; envelope-from=philip@philipmcgrath.com; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669135908; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=56t3dAMPlzx7fc0tnIkOQGXlmhcsv4W2BVqu/Ug12wM=; b=BQ7ZqyNV6Eva+boN1v9+bBdz18L8r3wNfBBWYQvFNWWz3WjXaofsw/6vh72MJzLO7xiCj2 /WaQyRBMwp3uxzOZWiKIrkcQ6XuRec1+bvd57eHgYcCaFU5LorAyPui3w/AZK5WE8Ka+jw MrAS5muCSFPtm26NjBINHrEgZxboNkMaG7+T5D1sIuJI++0hLeevFLMm1O2+WUzJkZ5uVy hKxepBZoxy7n3FRK7C6ogS8BEkUYQMuSPYjIPP5+nfqsc4bstBzcWM33lQS6j/3xeWW/fD Yy1PD6xU3oCtFRmghieSMWdZ+ioWiOUW6Q5rkgCHZEJnRhPYP+F6UIIbs9GhwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669135908; a=rsa-sha256; cv=none; b=IuDkW7FkAYkPmudHJ2+oloCg+dhJgmbQBz6PRl1MHfSNf3GTtP8nr6ZVGaIKBr8RFVD8aQ dfBMegjU2wUcFt92dlt+UxvP/XJf8zvXTZa9ZWr+qYXCAwPv3GQZIZoNXlS5k+bKwIjcm3 gY0SOlszT2nXnmfamFS8h5qS0Kpt4o66r8hNx9LNYxEcgOfKqkguUoTDPzr7a8USidR/KY uB5cQB1/p1sGB9hh9twWiN8edG5TPP+CS2F5ge1yCUByrraKeT/jMFV2jUMWIHLtlJvxZp oID7yoRMaefIGgGAtJxS5x6IW9yNhialWtkTRi3LU9xqMh0aeKmyp/3hYv+OBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=D9r8enMY; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="ZTJ33Vt/"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm1 header.b=D9r8enMY; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="ZTJ33Vt/"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 98C652FC16 X-Spam-Score: 2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: XYe7bc7ch69J Hi, On Tue, Nov 22, 2022, at 10:39 AM, zimoun wrote: > Hi, > > On Mon, 21 Nov 2022 at 21:21, Maxim Cournoyer wrote: > >> Given that: >> >> * the git CLI doesn't suffer from such poor performance; >> * This kind of performance problem has been known for years in libgit2 >> [0] with no fix in sight; >> * other projects such as Cargo support using the git CLI and that >> projects are using it for that reason [1]; > > And I would add the lack of =C2=ABSupport for shallow repositories=C2=BB= [1]. > > 1: > > > PS: For the record, Software Heritage, which ingests *a lot* of Git > repositories, relies on Dulwhich [2] (pure Python implementation), IIU= C. > > 2: Along those lines, there=E2=80=99s an implementation of clone/checkout i= n pure Racket (for the package manager) that could probably be ported to= Guile relatively easily. I=E2=80=99d expect libgit2 to be faster for th= e things that it supports, but the Racket implementation does support sh= allow checkout, so it might pay off if that skips a lot of work. Code: https://github.com/racket/racket/blob/master/racket/collects/net/g= it-checkout.rkt Docs: https://docs.racket-lang.org/net/git-checkout.html (More broadly, I haven=E2=80=99t investigated performance issues, but my= basic inclination would be toward improving libgit2 over running the gi= t executable.) -Philip