From: Junio C Hamano Date: Fri, 06 Nov 2009 07:20:39 GMT Subject: Re: [PATCH] pack-objects: move thread autodetection closer to relevant code Message-ID: <7v7hu43yrc.fsf@alter.siamese.dyndns.org> In-Reply-To: Nicolas Pitre writes: > Let's keep thread stuff close together if possible. And in this case, > this even reduces the #ifdef noise, and allows for skipping the > autodetection altogether if delta search is not needed (like with a pure > clone). Nice. The ll_find_delta() function itself will disappear and becomes the single-threaded find_deltas() when THREADED_DELTA_SEARCH is not defined, and the variable in question is used only inside the function anyway, so this works beautifully. Very nice.