git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Common thread pool API in Git?
@ 2019-09-26  0:33 Jonathan Tan
  2019-09-26  0:35 ` Jonathan Tan
  2019-09-27 22:14 ` Jeff King
  0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Tan @ 2019-09-26  0:33 UTC (permalink / raw)
  To: git; +Cc: Jonathan Tan

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-27 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-26  0:33 Common thread pool API in Git? Jonathan Tan
2019-09-26  0:35 ` Jonathan Tan
2019-09-27 22:14 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).