summaryrefslogtreecommitdiff
path: root/mailmap.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-12-08 05:03:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-08 11:38:36 (GMT)
commit384b32c09b3c7e36b4d65ae80fc758d75dba3fc2 (patch)
treebda0943e89f8734e3c9435798f1d17deeb43065f /mailmap.c
parentb904166ccb67d80491fad9d4f5ec42d241975f37 (diff)
downloadgit-384b32c09b3c7e36b4d65ae80fc758d75dba3fc2.zip
git-384b32c09b3c7e36b4d65ae80fc758d75dba3fc2.tar.gz
git-384b32c09b3c7e36b4d65ae80fc758d75dba3fc2.tar.bz2
pack-objects: fix threaded load balancing
The current method consists of a master thread serving chunks of objects to work threads when they're done with their previous chunk. The issue is to determine the best chunk size: making it too large creates poor load balancing, while making it too small has a negative effect on pack size because of the increased number of chunk boundaries and poor delta window utilization. This patch implements a completely different approach by initially splitting the work in large chunks uniformly amongst all threads, and whenever a thread is done then it steals half of the remaining work from another thread with the largest amount of unprocessed objects. This has the advantage of greatly reducing the number of chunk boundaries with an almost perfect load balancing. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.c')
0 files changed, 0 insertions, 0 deletions