2011/11/7 Junio C Hamano <gitster@xxxxxxxxx>: > Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> writes: > >> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> >> --- >> I hate it every single time git hangs because gc is activated. >> Opening another terminal is an option but I would lose all terminal >> settings I have on the current one (e.g. access to suspended vim >> sessions). >> >> I don't think gc_warn_* need their own config vars. Hopefully >> hardcoded offset is good enough. > > Let's think about How the user chooses a custom value for the threshold > (or accepts that the default threshold value 6600 is good enough). > > ... > > Now, I suspect that busier users would need longer window than slower > ones, which leads me to suspect that a good default would not be a > hardcoded constant offset (e.g. once you see the new warning, the auto-gc > kicks in after creating 100 objects) but some ratio of the threshold > (e.g. you have 2% margin after getting a warning before the auto-gc kicks > in). Speaking for myself, as soon as I see the warning, I would immediately start a new shell for git-gc alone and get back to my work (hopefully gc will not be activated again while another gc is running) so one or maybe three warnings may be enough. But yes, some ratio may be better for different users. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html