gitindex: use --unordered for git cat-file#1039
Conversation
|
Full details below from deep search Detailstitle: In github.com/sourcegraph/zoekt we use "git cat-file --batch --buffer" on all blob objects for a commit. However, in production we are now seeing huge memory usage leading too OOMs. In particular it is the git process taking up so much memory. Can you inspect github.com/git/git to see why that may be the case. Could it be due to --buffer?
|
|
cc @clemlesne |
|
This made no difference to actual RSS usage in git. |
UNTESTED! Will follow up next week.
We disabled cat-file due to memory issues. After some research I suspect that passing
--unorderedmay work even though we don't do--batch-all-objects.So in theory this will speed cat-file up. But the other theory is this makes better use of the delta base cache.