From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iDliO1M5A2UCDQEAauVa8A:P1 (envelope-from ) for ; Thu, 14 Sep 2023 18:48:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iDliO1M5A2UCDQEAauVa8A (envelope-from ) for ; Thu, 14 Sep 2023 18:48:20 +0200 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 0A4B63C86F for ; Thu, 14 Sep 2023 18:48:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GqAdXqVi; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694710099; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=ubxUQUfGC6kd9ilAx9FRSB2VASt13EIVAfU2ClCezis=; b=rEE+jpDhVOYN0cRgl4c58Ri6cFNvIuilR5VwN+/9URrqxWe5lWDZTxyVOkPpOkDggQWWyF iDHaVq0ow223McHRXZzcmw+hgRA8KU2gBQJT3coSw7lU2BaXahjDPk8p2H6ZyOK099vnO+ 3pXq8K+sfikobbYlMQfX2USNlBIDk1XJY/P0Ubwjlj0/hIiw1QENtRBv5kcSQnStben0yQ ba1gvEoSd1O1OEQcm6XhgYZ8pFNu2EtR0i32ffkWoAgIzcRjpBj5qfoDeqk2vJD5FsU1WW L3ylt8mal3y8gFde67W51KcKxHymJIL/miad1hvDWr2KxRy/b3UNIxutQ9q1sQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=GqAdXqVi; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694710099; a=rsa-sha256; cv=none; b=MjWIWxBEd2b/uwhTjGXvXIt3W+c7oYC0NqdMx6ZryqCedoXd3YkKMTU35ydfyCEyn6Dr9y xBI25Ik4ji9hLdUpkoJYuRVxde01KfkYNWQNX6xjHkd696tbl31q6PMAfmDPEAOs52yIlB Ukl+qQPlB6qiN3NljoShYRYHx+XMsUXjoBKeFf4ccgyxuIQLmNEeRewXMOtMT6mK/rKPMc usiBJJGRFm78vBgCRSQjOHhUlJL8gD45ucNKhBs6txXXViPwY6DiOkUjpWxkVIFGQRdBFN oNY3mAvy6xCQobaMjbpizpoWCnf/UOl3QN//3YgPzf234K0JdZ/qvFEJUn8OtQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgpVC-0002LJ-Md; Thu, 14 Sep 2023 12:47:38 -0400 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 1qgpV3-0002K3-EF for guix-devel@gnu.org; Thu, 14 Sep 2023 12:47:30 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgpV1-0003Cx-RU; Thu, 14 Sep 2023 12:47:29 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40471c054f9so2334505e9.0; Thu, 14 Sep 2023 09:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694710046; x=1695314846; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ubxUQUfGC6kd9ilAx9FRSB2VASt13EIVAfU2ClCezis=; b=GqAdXqViP2GjIesgQB89a56LhRLRVpo8fyoZJ2M4zSrXnL9YQh3KAln4SPGATf/uac jW+yUtkleAtRcywyQ1OmM2M2xm/rdtIOBsqElWgxoXy9BLSo9uI0trsm0Xw09T+KX8Ih wx5B/PREJEA9/mWuvibNXx3nu4aPVCZ/iyH5vy/c2qrct8evBkitaBBOX0I5VHc/zA6R Kl7MrtyxzQcLsw6ak9N14S2UfCOcBPYKxMy12I/7KvdHRpQQWYMDwYMkaZVFvzrc7DOV aF305HHrx9h1RSjn0K1nhFdDWvYWd4cAIMyYuouv6MPWlyzAY0Tno9TBMcH7Xq2vXqek i6+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694710046; x=1695314846; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ubxUQUfGC6kd9ilAx9FRSB2VASt13EIVAfU2ClCezis=; b=v/gFsWG6cXTqE8xZpwKJDM2z+7UjcEeE0RUMDMLwshSiWf/aLOvtdWFvkvoCJLt52W tgJMLulIA2LnkGDVJwbjEKXLT8qs9mWpuRlNXeZOCTtJUdqiQcpteyscUJrMtQlQPTWy K7Jgnty1sjrSWICBm2pe6dmMiks+JTGzZi1C9EpnJ+fPEoiCKUm6eTYZVYXa8lKE8z9Y HQOKsHDwb4MD6GcNaexlcVHmlL8Z2gZmpCk0EVlNK0v3Npp/3/fCmnDbHsjpVlNLNm8O jcK0yD0JczXkHt2Ul7FouFbqpAYd5so7ZaAOIddn2ssckocTeGAzMMulMg87lGPe1+t9 fC6w== X-Gm-Message-State: AOJu0YxMjKGOvwlYo28LsdIGXZcYFpxsiS5nrrJczqzYp8npmhwh8C2C +Gb4KJgHozpbKT7jFc9b9M8xkNUV3aM= X-Google-Smtp-Source: AGHT+IFlnwi7DSexim/8mcSiQpGxNZPc7ZWOuuKigXckmZKXF+6r526smppze/Ioj6T5GCSYrOnqcg== X-Received: by 2002:a05:600c:3c8f:b0:401:faf5:85c3 with SMTP id bg15-20020a05600c3c8f00b00401faf585c3mr5269236wmb.0.1694710045695; Thu, 14 Sep 2023 09:47:25 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id g8-20020a7bc4c8000000b003ff013a4fd9sm2435982wmk.7.2023.09.14.09.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:47:25 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Maxim Cournoyer , guix-devel@gnu.org Subject: Re: comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git In-Reply-To: <87jzstcail.fsf@gnu.org> References: <871qf4ivsr.fsf@gmail.com> <87msxswoph.fsf@gmail.com> <865y4gz5q9.fsf@gmail.com> <87jzstcail.fsf@gnu.org> Date: Thu, 14 Sep 2023 13:56:03 +0200 Message-ID: <87edj1dl4c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -2.61 X-Spam-Score: -2.61 X-Migadu-Queue-Id: 0A4B63C86F X-TUID: evmtrDtrj9wz Hi Ludo, On Thu, 14 Sep 2023 at 12:30, Ludovic Court=C3=A8s wrote: > but I don=E2=80=99= t think > we can get a decent throughput if we shell out for all these things > (assuming =E2=80=98git=E2=80=99 can even give us raw data). Do you consider that Magit does not have a decent throughput? Do you consider that Git-Annex does not have a decent throughput? To my knowledge, they shell out Git plumbing commands; one using Emacs Lisp and the other Haskell. And some porcelain Git commands that we all are using daily are Bash scripts calling plumbing Git commands that shell out. (Or were Bash scripts before being replaced by C builtin). For example, git-rebase, git-pull, git-log, etc. https://github.com/git/git/commit/55071ea248ef8040e4b29575376273e4dd061683 https://github.com/git/git/commit/b1456605c26eb6bd991b70b0ca0a3ce0f02473e9 https://github.com/git/git/commit/e3a125a94d34d22a8ca53e84949a1bb38cd6e425 The task is probably complex and boring, I agree. However, I am not convinced the issue is about a =E2=80=9Cdecent throughput=E2=80=9D. The be= st would be to have the same performance using libgit2 and using plumbing Git command for one example: say =E2=80=99commit-relation=E2=80=99. Or another= one. :-) Otherwise, I believe what I am seeing. ;-) Cheers, simon