Re: [RFC PATCH 2/3] run-commands: add an async queue processor
- From
Jeff King <peff@peff.net>
- Date
- Aug 21, 2015, 19:51 UTC
- Message-ID
- <20150821195135.GA26720@sigill.intra.peff.net>
- In-Reply-To
- <CAGZ79kYM6m-Me=okbxMAY_NKDm40JwfgRutwTzYfT5=ez42=jg@mail.gmail.com>
On Fri, Aug 21, 2015 at 12:48:23PM -0700, Stefan Beller wrote:
Show 13 quoted lines
> > Before even looking at the implementation, my first question would be > > whether this pattern is applicable in several places in git (i.e., is it > > worth the extra complexity of abstracting out in the first place). I > > think there are a few task-queue patterns already in git; for example > > the delta search in pack-objects. Is the interface given here sufficient > > to convert pack-objects? Is the result nicer to read? Is it as > > efficient? > > > > We do not need to convert all possible call-sites to the new abstracted > > code at once. But I find that converting at least _one_ is a good litmus > > test to confirm that a new interface is generally useful. > > Ok, I'll head off to convert one place.
Thanks. By the way, reading over what I wrote, it sounds a little harsher than I meant. It is not "if you do not convert an existing site, we cannot accept a new interface, period". But I would like at least some explanation as an alternative, like "I'm pretty sure we can convert site X to this, but it is not a good time to do so now because of Y". Where "Y" might be "we need to do this other refactoring work first", or "it would be disruptive to other work in the area".
-Peff