git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add fetch.recurseSubmoduleParallelism config option

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 16, 2015, 17:26 UTC
Message-ID
<xmqqh9lqg1xe.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kZDMawq6f3Jet0o-93-vSamy3skji63brdT3puzaLty5Q@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 5 quoted lines
> so maybe
>     fetch.recurseSubmoduleJobs
>     fetch.submoduleJobs
>     fetch.jobs
>     fetch.connectionsToUse

"git remote update" is another example that may want to run multiple independent 'git fetch' in parallel. I think "When the operation I ask involves fetching from multiple places, I want N instances of them to be executed", regardless of the kind of operation ("remote update" or "submodule update", etc.), would match the end-user's point of view the best, if you want to give them "set this single thing to apply to all of them" fallback default.

If you want to give them a finer-grained control, you would need to differentiate what kind of fetch would use N tasks (as opposed to other kind of fetch that uses M tasks) and the name would need to have "submodule" in it for that differentiation.

Show 7 quoted lines
>> So if you want
>>
>>     [submodule]
>>         fetchParallel = 16
>>         updateParallel = 4
>
> So you would have different settings here for only slightly different things?

I was just showing you that it is _possible_ if you want to give finer control. For example, you can define:

 * 'submodule.parallel', if defined gives the values for the
   following more specific ones if they aren't given.
 * 'submodule.fetchParallel' specifies how many tasks are run in
   'fetch --recurse-submodules'.
 * 'submodule.fetchParallel' specifies how many tasks are run in
   'submodule update'.

so that those who want finer controls can, and those who don't can set a single one to apply to all.

If you want to start with a globally single setting, that is perfectly fine.

Previous: Stefan BellerNext: Junio C Hamano
Message 6 of 9 in “Add fetch.recurseSubmoduleParallelism config option”
  1. Add fetch.recurseSubmoduleParallelism config optionStefan Beller, Oct 12, 2015
  2. Junio C HamanoOct 12, 2015
  3. Stefan BellerOct 12, 2015
  4. Junio C HamanoOct 12, 2015
  5. Stefan BellerOct 16, 2015
  6. Junio C HamanoOct 16, 2015
  7. Junio C HamanoOct 13, 2015
  8. Stefan BellerOct 13, 2015
  9. Junio C HamanoOct 13, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.