send-pack.c: add config push.useBitmaps
Reachability bitmaps are designed to speed up the "counting objects" phase of generating a pack during a clone or fetch. They are not optimized for Git clients sending a small topic branch via "git push". In some cases (see [1]), using reachability bitmaps during "git push" can cause significant performance regressions. Add a new "push.useBitmaps" configuration variable to allow users to tell "git push" not to use bitmaps. We already have "pack.bitmaps" that controls the use of bitmaps, but a separate configuration variable allows the reachability bitmaps to still be used in other areas, such as "git upload-pack", while disabling it only for "git push". [1]: https://lore.kernel.org/git/87zhoz8b9o.fsf@evledraar.gmail.com/ Signed-off-by: Kyle Zhao <kylezhao@tencent.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8168d5e9c2
commit
82f67ee13f
@ -26,7 +26,8 @@ struct send_pack_args {
|
||||
/* One of the SEND_PACK_PUSH_CERT_* constants. */
|
||||
push_cert:2,
|
||||
stateless_rpc:1,
|
||||
atomic:1;
|
||||
atomic:1,
|
||||
disable_bitmaps:1;
|
||||
const struct string_list *push_options;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user