Re: [PATCH 4/5] index-pack: Use the new worker pool
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 25, 2015, 21:12 UTC
- Message-ID
- <xmqq37z7xebe.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAGZ79kZ9V35KmJSExt=EqYFcyOSysaFsJA0E+dx46Qg+Pm+Ybg@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 14 quoted lines
> Not sure I follow there. > > Original implementation: > We have M threads sitting around the table, all of them trying to obtain food > from the one bowl on the table and then eating it. > Once the bowl is all eaten, we can stop. > > New pattern: > One cook puts all the food items on the sushi-go-round-belt with a fancy plate > and the threads grab them one by one still using locks (but they are internal to > the belt). > > Are you saying we're content with just a bowl and everyone helps themselves > for getting food?
No. I am questioning how big overhead is for having the go-round-belt that must hold all dishes to be eaten, which did not exist in the original arrangement.