threaded delta search: refine work allocation
commitc2a33679a726aeb75529540c2b295f21023ddbc7
authorNicolas Pitre <nico@cam.org>
Mon, 10 Sep 2007 04:06:09 +0000 (10 00:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Sep 2007 05:25:33 +0000 (9 22:25 -0700)
tree58c4b8b7dfb7eda500c81f4a682a2e116b7b1083
parent8ecce684a38f7cea084abe9eef80bda04d7c77be
threaded delta search: refine work allocation

With this, each thread get repeatedly assigned the next available chunk of
objects to process until the whole list is done.  The idea is to have
reasonably small chunks so that all CPUs remain busy with a minimum
number of threads for as long as there is data to process.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c