Re: [PATCH RFC 0/3] cat-file: make remote-object-info request in batches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 27, 2026, 19:12 UTC
- Message-ID
- <xmqqld7jj6u5.fsf@gitster.g>
- In-Reply-To
- <20261027-remote-object-info-batch-v1-0-ea7a1f0b1df1@gmail.com>
Pablo Sabater <pabloosabaterr@gmail.com> writes:
Show 7 quoted lines
> 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.
Show 6 quoted lines
> 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).