From patchwork Fri Jan 28 10:15:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 12728179 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72935C433EF for ; Fri, 28 Jan 2022 10:15:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245062AbiA1KPp (ORCPT ); Fri, 28 Jan 2022 05:15:45 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:34629 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbiA1KPl (ORCPT ); Fri, 28 Jan 2022 05:15:41 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 2B23C320208F for ; Fri, 28 Jan 2022 05:15:39 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 28 Jan 2022 05:15:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; bh=l rwrMGukQRW2pz5lQstM+mVeMHx9wPArUjOGU3x845I=; b=BL6K9FkHl7Xk7yOax RWjSpWAvN0Zf9R53lHqb5iAK+snypSb/Kq3t87cjySNggJbLRAbtyxixElJv65VS eXv7NccMJvVeanfW88bRo3+9eSCKWHSK9+4qCDUsXMzavu4HMKp417n9wxj2pxEy RUl5PDJvhiRdzs3Kgfv3iqXBhzwm26JnUap5U+Wt7IOmObNtKS+2vOhK+oYMFx2R 2m47bNV9toH6B8GWVNg1XZHaQwRn3MRucOOUS3xdRg2oJVVxqbeYJKri5bfY9cxU p8qtlPkcq7jYz3aNYSgJRT+pFdc2RVS3fS9IHlZPVpiZcorIFDChvM7zfddQwZR5 RFuZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=lrwrMGukQRW2pz5lQstM+mVeMHx9wPArUjOGU3x84 5I=; b=K3vH67cMmqy9mopM52M6wSdbW/jqwUTV/n2O5Pifh7DO9fDojL5NohXeS ZCLQM5qUqe/SGl2dHlC3MgQUdiGVBhpNsX3bBOXTgZu+HMzRCDXo7YYQUigq9Y67 KNTU/nIj8nz6JJqlK6/f5vJKzGUmcbfIWRlB1hESM2C+pkKfMOPcbY0L/RfWqmkY om+vsi5bjvyABhddFNzMatJwwMrAeaAsn9DSOSsudMdPfuKw1XHBMTRofSNrrhtU 17w3vLa7yh97zTzVQl3pSKP7MfINHOeOpV/UYB2PAqa+kv3I69uQbRkw1PbvR1UX kEjwKAo2lhFs5zgOI4/kIJuDaIWfw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeehgddufecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehgtderredttd dvnecuhfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshesphhkshdr ihhmqeenucggtffrrghtthgvrhhnpeejieefvdeuleffgfejudffvdeghfeigfejgfdvvd efudevffefveffhffgkeeiffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehpshesphhkshdrihhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 28 Jan 2022 05:15:38 -0500 (EST) Received: from localhost (ncase [10.192.0.11]) by vm-mail.pks.im (OpenSMTPD) with ESMTPSA id 82179c68 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 28 Jan 2022 10:15:35 +0000 (UTC) Date: Fri, 28 Jan 2022 11:15:34 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 0/2] fetch: speed up mirror-fetches with many refs Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi, this patch series aims to speed up mirror-fetches in repositories with huge amounts of refs. It contains two patches which together speed up git-fetch(1) in a repository with about 2,1 million references by roughly 30%. Patrick Patrick Steinhardt (2): fetch-pack: use commit-graph when computing cutoff fetch: skip computing output width when not printing anything builtin/fetch.c | 8 ++++++-- fetch-pack.c | 28 ++++++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-)