summaryrefslogtreecommitdiff
path: root/patch-id.c
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2008-12-13 15:06:40 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-12-13 18:55:55 -0800
commitbf874896240cb00b22cd4f6cbcc143b17cc7fe0e (patch)
tree9709b69f299ab2b9b207591402d49b0bfde82905 /patch-id.c
parentautodetect number of CPUs by default when using threads (diff)
downloadtgif-bf874896240cb00b22cd4f6cbcc143b17cc7fe0e.tar.xz
pack-objects: don't use too many threads with few objects
If there are few objects to deltify, they might be split amongst threads so that there is simply no other objects left to delta against within the same thread. Let's use the same 2*window treshold as used for the final load balancing to allow extra threads to be created. This fixes the benign t5300 test failure. Signed-off-by: Nicolas Pitre <nico@cam.org> Tested-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'patch-id.c')
0 files changed, 0 insertions, 0 deletions