From: Jonathan Tan Date: Thu, 26 Sep 2019 00:33:00 GMT Subject: Common thread pool API in Git? 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/