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

Is Git multithreaded ?

From
Laurent Alebarde <l.alebarde@free.fr>
Date
Jun 12, 2013, 18:28 UTC
Message-ID
<51B8BDE4.7030008@free.fr>
In-Reply-To
<51B8BBC0.6020908@free.fr>
Hi list,

I wonder if Git is multithreaded ? For example, during a commit, does it process the files one after one, or does it use a set of threads, say 10, to process 10 files in parrallel ?

In the Git_Guide (http://wiki.sourcemage.org/Git_Guide.html), I can read this :

"T/o enable aut-detection for number of threads to use (good for multi-CPU or multi-core computers) for packing repositories, use: /////

////
///$ git config --global pack.threads "0"/  "

But it is not a lot explanatory (to me). In particular, if Git is multithreded and can be configured regarding the number of workers, I wonder in which operations it uses it ?

A clear view of this may be of interrest for hooks or filters that may use a daemon, in order to not have this daemon be a bottle-neck. It would make sense to start as many workers in the daemon that there are authorized ones in Git.

Cheers,
Laurent.
Next: Jeff King
Message 1 of 3 in “Is Git multithreaded ?”
  1. Laurent AlebardeJun 12, 2013
  2. Jeff KingJun 12, 2013
  3. Laurent AlebardeJun 13, 2013

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.