Re: [PATCHv2] attr: convert to new threadsafe API
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 12, 2016, 21:28 UTC
- Message-ID
- <xmqqh98h2r5t.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20161011235951.8358-1-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
> This version adds the actual thread safety, > that is promised in the documentation, however it doesn't add any optimization, > i.e. it's a single global lock. But as we do not expect contention, that is fine.
Because we have to start _somewhere_, I agree it is a good approach to first try the simplest implementation and then optimize later, but is it an agreed consensus that we do not expect contention?