summaryrefslogtreecommitdiff
path: root/Git/Repair.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-03-10 15:12:54 -0400
committerJoey Hess <joey@kitenet.net>2014-03-10 15:12:54 -0400
commit39a3a2641c1b97e6a4c7e1c9bb405236a7c2e5c3 (patch)
treee98678db2346b18f3d471a389f1ac2ee6f994d0b /Git/Repair.hs
parent06d4c0713457cad82d11b7c5172a7dbecb65f93a (diff)
downloadgit-repair-39a3a2641c1b97e6a4c7e1c9bb405236a7c2e5c3.tar.gz
Improve memory usage when git fsck finds a great many broken objects.
From 1.7 gb to 900 mb on 300 thousand unique reported shas. When shas are not unique, this streams much better than before, so won't buffer the full list before putting them into the Set and throwing away dups. And when fsck output includes ignorable lines, especially dangling object lines, they won't be buffered in memory at all.
Diffstat (limited to 'Git/Repair.hs')
0 files changed, 0 insertions, 0 deletions