Article View: linux.kernel.git
Article #1666Re: [PATCH RFC 0/3] cat-file: make remote-object-info request in batches
From: Junio C Hamano
Date: Tue, 27 Oct 2026 19:12
Date: Tue, 27 Oct 2026 19:12
26 lines
13538 bytes
13538 bytes
Pablo Sabater <pabloosabaterr@gmail.com> writes: > A noticeable difference can be seen from a 10k OID batch to a 50k batch. > After that the difference isn't as noticeable (the number of batches to > be requested isn't that big). > > I propose 50k OIDs as the default number of OIDs for the > remote-object-info batches. Coincidentally, git backfill's default batch > size is 50k as well though it's unrelated. Interesting. We cannot share any code with backfill as we only retrieve info on objects while backfill does grab the objects themselves, but using the same number may make it easy to explain in the documentation. > I have barely done any benchmarking before, so I would appreciate > any feedback on the one in patch 2. Is there a better way to do it, > or other things I should take into account? > > Should the server also check for a limit on the number of OIDs it > accepts in a single object-info request? What I am more curious about is how this updated code interacts with existing code (i.e., updated "cat-file --batch" clients with deployed servers, and vice versa).
Technical Details
Message-ID:
<xmqqld7jj6u5.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73549-linux-kernel-git=dewy.ruReferences:
<20261027-remote-object-info-batch-v1-0-ea7a1f0b1df1@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73549-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH RFC 0/3] cat-file: make remote-object-info request in
batches
Date: Tue, 27 Oct 2026 12:12:34 -0700
Organization: Usenet Network
Message-ID: <xmqqld7jj6u5.fsf@gitster.g>
References: <20261027-remote-object-info-batch-v1-0-ea7a1f0b1df1@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
logging-data="1613606"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Jg3fidHG7h/xAJD3mT/dx7OxYOE= sha256:8cu1WIH16SgV/JeZ3qeXUJAAuANt00WL6ZTMOTiLIGU=
sha1:dAx27tF45O974ImuMskEwDIJTOE= sha256:cz7o1S1SBp3aph+Y2qbsIBjo1kGruUqS1GvDKhbkQUM=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 78F52125C06; Tue, 27 Oct 2026 22:13:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=mbA1NPdT; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=QX5260Vt
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id SQjYDn-yPbFJ;
Tue, 27 Oct 2026 22:13:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73549-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 987E1125C0D; Tue, 27 Oct 2026 22:12:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 1305126B0E; Tue, 27 Oct 2026 19:12:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793128359;
b=qhzV6aVwX5ohFlGRtQuyJ7x7fazEXKtcZA6zyPpGhbQtw9cmLW4p/auyDyQAhPwxSJUZ
zPVW8xKelzn3wDxMx4K0kaCNQmpTwXvXFLh6GFzVFYbk5gnkjQmA+bS0idTq2yx4ADBIZ
s2jhzPofOStfbv7HumVhrcZgQQftg75BMx35KxQGt6ESq/d812+2fSqBCi2gJyB9W3ipY
/x9APp8ADlqqH/CtRp54cPQcSCSJTpOKhQ7xYF0jZ4WnCOfYWNu4j4wB0SWr4AqTbrvSZ
UXaO4A8J+8IqJu3zzjSYU45yoIlG2p4J1RT49k4EhsJw2iPbNKvwqyni+PvV03G4Flw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793128359;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type;
bh=P1mHWb/1OJTm1bh0j32Rpp+2TiDmSJZA+V8y03KEI+A=;
b=ByKfutUbYkusDjhMOTuJ30Jp/oTx5psUZbQlRBhHD6wuY///CGeZnspr0cLMKoSlexFL
dHDIq1hwnDXHEKTr8udhiazGqBgLlvQLGWqlvh8naPXlsc9zPeKdaFM/VldOK12cVUoz1
hrFD9v49wkA6f0H6CCogA1ZTNNffdPEdD7IN/OnYgMh1vghQd+Qgtnvzsici8NCFsXu9p
Tqr3me8/sRrEkSGfwGsMvdQ2ssusW0BSwAdjLgBhHc2WPJW3JgDWbciKEHRXCvJ3sy4Vw
hagqijFjL4XX3+pBemGwRKNU9Vf5zVHIanf4cvpzMMIy2w1Jbg13rfWGoHqRMA4myng==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=mbA1NPdT;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QX5260Vt;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5E4606A326;
Tue, 27 Oct 2026 19:12:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=mbA1NPdT;
dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QX5260Vt
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.153
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793128359;
b=c7KCwThloku8vfdU0MWnkNv8oJtSNkMH8JWa2AaOO/E7Fn2sDhtZEI6R6gSnxpMgnpq3
p7PYcFu//xZiMCEeqpYJ4xMgxxVg4IxEK/EGJ0GGM3wTJK9FY3gUzo1EFaponaNgJbr59
ZfuLOXPtpjmbdi364mVCSOkBdpUesyc+UlygMeVefPAmA0FSe8uBhhXe8Exod1OaPWwLB
Y6m+SVmcDOy8bRWy97cRMtgNKrfwzyZ5L7wt6FLxwuJOsnO2AqaWn2F256cX+F6/THfbT
vXK999V3DbOT0gUCPSDY02IYQYbJ3sTxBcwUd/c4sp2xQ6HY6Wo24gKyY3ye3Xy+UuQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793128359;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
User-Agent:MIME-Version:Content-Type;
bh=P1mHWb/1OJTm1bh0j32Rpp+2TiDmSJZA+V8y03KEI+A=;
b=kcSk0JHKL6Zn+vYHVCniTflyW6D2Yc2dFX9nU+j5zyUZeaNYeNmPBClXMsRBVQ9hy6QY
BqQ0O5mXRYjlXfMYVEhMFpOf05lxcDJ5c7HxJv3SgGE++L+tZkLfyWb9Osdeo5H9usXXO
3uVTzUXbr+rBbYRSJSxZ0B1sYdZzU62Gr/44fP99DIu+g1eVV0p64Fz1LulPvODvc0QeW
FxJk7Ipgm04Vu2ca4V+ttfszsb2MuY18yt7j6+MXt7qr+sX6vLtZD6UAAbG2HsSJYCEDO
8AH8qQ5acMQK5UXKQHz+0JzKbS4iOZ0bLgVnDlQoi4nMWbNpyVYSnT7r9rrcbiohI5g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm1 header.b=mbA1NPdT;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=QX5260Vt;
arc=none smtp.remote-ip=202.12.124.153
X-Received: from fhigh-b2-smtp.messagingengine.com (fhigh-b2-smtp.messagingengine.com [202.12.124.153])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2A21606A31F
for <git@vger.kernel.org>; Tue, 27 Oct 2026 19:12:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2A21606A31F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49])
by mailfhigh.stl.internal (Postfix) with ESMTP id 08F2F7A00E0
for <git@vger.kernel.org>; Tue, 27 Oct 2026 15:12:38 -0400 (EDT)
X-Received: from phl-frontend-02 ([10.202.2.161])
by phl-compute-09.internal (MEProxy); Tue, 27 Oct 2026 15:12:38 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1793128357; x=1793214757; bh=P1mHWb/1OJ
Tm1bh0j32Rpp+2TiDmSJZA+V8y03KEI+A=; b=mbA1NPdTzDBjDRHEbLD48hfuTX
BjmOzs/KTRGjb/f6QPL1YtGeVBv8ssJ2X73AOKcNNpMOuX7Y733HoheUMNpMOvWA
MtXr1poeh5eE48wLWepDlGZd3TYnErnhc+Fo+Vpfy9fmBsD97529eZjMB8GpJZDW
7QURn0lZwN8tgBvEbcvDz6OA+P6doVBxSS/C7PTRoOtaCRzXpxaxaJmL6RoUdvVn
c0k8oh1iS/UAtjAS9OEdckxfjrKeQEr4HP6IdGXQiw0EClyw+Y/Ix2BVHPNq4pdz
ke8N1hxUv9YvIkyqzRFM2PAG5IhYExe5aKt4+lVrc2jMcEHmcyZHzjJoRnBg==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1793128357; x=1793214757; bh=P1mHWb/1OJTm1bh0j32Rpp+2TiDmSJZA+V8
y03KEI+A=; b=QX5260VtQ6Tu4NLZkE74cDRGivVxEQ7nH87lhfvzyB7X/KeOKik
/L2IVE+XDr+GBHCPRt8Li1ro+7s4Dc4fLWj6Q6DI3PQIoMMgDj567SOw3u5Sy+Fb
rzgndguIDeFOVotBZX4wH8ps1aoNZNSQIsepZ9n+NgM+el6oANPJotVpwKA3bnLe
9rPHGC4Ft5APacveUMmcihXk4f3y8WhrHL07hBKLedCNPWsPlbh5szRRqiEU8rA3
9V2KoYw0Lvh+8OVN2s1qAthHrB06hqyuJXMCda8RlFanAuHi4/IJX/NQiDsdv5FA
/rXBKoT08h15roQSuJFAni8qlU23mL1O/WA==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-07;
repo=github.com/dkim2wg/interop; date=2026-10-18; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1793128357; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm1:rsa-sha256:ffVSEjwrExD4HWnsZTwrjeqdhjHAtNl1F7jrOAvxc3dHGu6
89FNt9WkhqZ+FS6lCWOPDa3yzKmLFl9GQsoywM+e2NKUB3YDIbSvx8wHq0MFa6PW
M/NE3GSC748mZIqgZypO0I4jb1aKFu7PfZNsd9WA2/PU9aEdbOgRiC0GcaYuk5fo
ohIGEA9BDejwQxKybDbQgZyHSBCPUExkXDj+5HFbf2FMEziWURecMU9UQboslnl/
QLuWNbKbz2UdvTshEXPRw26uSKGLXeOVv5NliMIrUE9wa9ehj9lk9xfWZZiDBIof
ee1IN6eFwLcDEsnNMemzb1pDLiFHDohwGtF5qlg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-07;
repo=github.com/dkim2wg/interop; date=2026-10-18; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:UeVsudZ29cNFdKaQoPHtrV+kl1KeOdHaMimGOfqHPc0=:M8Wpf1v/gmC6PF5WwRZmkZLGkiUK7KGLMM7YR+apdRM=;
X-ME-Sender: <xms:pffgakX4_f6yKleetdOFIeU6dKoI942XFnYvp0r1FhVJW5yhpz3vZg>
<xme:pffgagCrniaRRiHdetHQLq6H4YIDO-_vmopaLVpt3xscsquW9llPLLkRPpUBMTppe
r41L34KExvYEgucmIN0uTiNi9JQKaHUnHNigfcFX777wxSAoAn6Rg>
X-ME-Received: <xmr:pffgalzXrtc_aThjNeas4QO7utIn4ZrhT-PL8mJB4xLRw9YiyZ1oGEOIGYEv-AErKuuWIPTxzYr1E4osNMKdLTFflkDhuy0nOC_E>
X-ME-Proxy-Cause: dmFkZTGejpocc9kJwcsgpToXnP36PjmJpu5UTxxf8nYnt6LNSPthjjFIJIyB5+fiCmgiqO
PB/Cx1O1ZygiD8jHKGQjJr9qfqRmpnft215/f+w+7m5J7m9BstEYvqAMzfRUAs4yBCIhrX
eauuFgshGoSZH/U+MtPo+yzpzkxPXu5rLcj4tDIcP7Y96qENoRKjcXEbdRnbWeq2kASYez
re/3pA6MnnYaCQVwqOPQjOW0R9i1uUB99oKCTHB0veE5HwTP4WaEX8CLHLB91i4kbC7CxT
Y+BgD6EwkGHhqa9cRHAqIXQ1DFvSn1xoXoJoDW+XkuXOdfuKCkGPd9/JUISJOd7A8XbDqq
MexH/wEAGlx3TZklPTN/ivR9LhFWlg20pdh4Cq3Wp44S+s7u6AxJx6RfmtOJ+l+ploilZ7
0P5Pxx7lK6odx56qd+TyLdXejyQU99n6NiYktFM7Hsivb0piK+MHmcLE1+Wr3ai67ytr+m
+hF68wbuVs8gQSKBJVxS/5pM1iqHhdnlwxuJHMUEPc9loxS7yBZrRfd9580IlwJsLABvS7
KfcX7AVGOThnO+SD5lWcucqTwpfO5hAo515Yw3I1MvREQq1QKFOwvsUzgLuA/5+C+H0cMx
/76TipnQ8TRXSJ4OfdIESmJNFU00m/yaOyzRR1GL1C/awNrCE1tEx3O77R7A
X-ME-Proxy: <xmx:pffgatDdiCRBTsTZq6WOeM33IoEKBaU5QZK5GuvZbKj_WqI7UTKWSw>
<xmx:pffgaibNsMuiUQzZzSIUUivVISKRud8ozlpboth1UJj6NVLhP9mT7A>
<xmx:pffgalj-MLCftN5pl04cE547DvF9S3DsdNhZYVSVvyNa8YRPFaZ54A>
<xmx:pffgak5lUkAlCiafO-18oC7RtIk4RxBLG8iS1Yry7gZ1LUYOiv0zvg>
<xmx:pffgakAVsGY_I9uyCc9uAH8ilt9Qi5SJ3QI-fqEvB0eEowNbEx3DACDC>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
27 Oct 2026 15:12:35 -0400 (EDT)
X-Cc: git@vger.kernel.org
X-In-Reply-To: <20261027-remote-object-info-batch-v1-0-ea7a1f0b1df1@gmail.com>
(Pablo Sabater's message of "Tue, 27 Oct 2026 03:16:50 +0000")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list