Re: [PATCH] pack-objects: Add runtime detection of online CPU's

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Ericsson <ae@...>
Cc: Git Mailing List <git@...>, Junio C Hamano <gitster@...>, Nicolas Pitre <nico@...>
Date: Tuesday, February 12, 2008 - 11:44 am

Andreas Ericsson wrote:


	if (delta_search_threads != 1)
		warning("no threads support, ignoring %s", k);

I changed this to '!= 1' since that is the only time the user gets what they
asked for when THREADED_DELTA_SEARCH is not enabled. If the user requested
nthreads == ncpus by setting delta_search_threads = 0, I think we should
let the user know that thread support is not enabled, and we are ignoring
their request.



This is in the wrong place. It should be _after_ command line arguments are
processed to handle --threads=0



Same comment as above about warning when delta_search_threads != 1.

-brandon

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pack-objects: Add runtime detection of online CPU's, Andreas Ericsson, (Tue Feb 12, 4:20 am)
Re: [PATCH] pack-objects: Add runtime detection of online CP..., Brandon Casey, (Tue Feb 12, 11:44 am)
Re: [PATCH] pack-objects: Add runtime detection of online CP..., Michael Hendricks, (Tue Feb 12, 10:52 am)