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

Common thread pool API in Git?

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 26, 2019, 00:33 UTC
Message-ID
<20190926003300.195781-1-jonathantanmy@google.com>

Does anyone have ideas or plans for this? I know that (at least) "grep" and "index-pack" have their own implementations, and it would be great to just have one that all code can use.

For those who want to know, this question was motivated by a big delta tree occurring in [1]. index-pack does parallelize delta resolution, but it cannot split up trees into threads: each delta base root can go into its own thread, but when a delta base root is processed, all deltas on that root (direct or indirect) is processed in the same thread. I took a look to see if this could be parallelized, but thought that it might be better to standardize on a thread pool implementation first.

Searching reveals [2], but I don't think it ever made it into Git.

[1] git -c core.deltabasecachelimit=2g clone https://fuchsia.googlesource.com/third_party/vulkan-cts [2] https://public-inbox.org/git/1440121237-24576-2-git-send-email-sbeller@google.com/

Next: Jonathan Tan
Message 1 of 3 in “Common thread pool API in Git?”
  1. Jonathan TanSep 26, 2019
  2. Jonathan TanSep 26, 2019
  3. Jeff KingSep 27, 2019

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.