From: Jonathan Tan <jonathantanmy@google.com>
To: git@vger.kernel.org
Cc: Jonathan Tan <jonathantanmy@google.com>
Subject: Common thread pool API in Git?
Date: Wed, 25 Sep 2019 17:33:00 -0700 [thread overview]
Message-ID: <20190926003300.195781-1-jonathantanmy@google.com> (raw)
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 reply other threads:[~2019-09-26 0:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 0:33 Jonathan Tan [this message]
2019-09-26 0:35 ` Common thread pool API in Git? Jonathan Tan
2019-09-27 22:14 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190926003300.195781-1-jonathantanmy@google.com \
--to=jonathantanmy@google.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).