summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2009-08-05 16:55:07 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-08-05 20:14:54 -0700
commit5749b0b2f935dc418c98ba8e7c52c3291451bc4a (patch)
tree67e34e7cbc3b1bf0fa6bdf8f64c6859fc729416f /git-repack.sh
parentMerge branch 'maint-1.6.3' into maint (diff)
downloadtgif-5749b0b2f935dc418c98ba8e7c52c3291451bc4a.tar.xz
don't let the delta cache grow unbounded in 'git repack'
I have 4GB of RAM on my system which should, in theory, be quite enough to repack a 600 MB repository. However the unbounded delta cache size always pushes it into swap, at which point everything virtually comes to a halt. So unbounded caches are never a good idea. A default of 256MB should be a good compromize between memory usage and speed where medium sized repositories are still likely to fit in the cache with a reasonable memory usage, and larger repositories are going to take quite some time to repack already anyway. While at it, clarify the associated config variable documentation entries a bit. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-repack.sh')
0 files changed, 0 insertions, 0 deletions