Re: [PATCH v6 00/14] Serialized Git Commit Graph
From: SZEDER Gábor <hidden>
Date: 2018-03-16 16:38:44
On Fri, Mar 16, 2018 at 4:06 PM, Ævar Arnfjörð Bjarmason [off-list ref] wrote:
I noticed that it takes a *long* time to generate the graph, on a bigger repo I have it takes 20 minutes, and this is a repo where repack -A -d itself takes 5-8 minutes, probably on the upper end of that with the bitmap, but once you do that it's relatively snappy with --stdin-commits --additive when I feed it the new commits. I don't have any need really to make this run in 10m instead of 20m, just something I found interesting, i.e. how it compares to the repack itself.
You should forget '--stdin-packs' and use '--stdin-commits' to generate the initial graph, it's much faster even without '--additive'[1]. See https://public-inbox.org/git/CAM0VKj=wmkBNH=psCRztXFrC13RiG1EaSw89Q6LJaNsdJDEFHg@mail.gmail.com/ I still think that the default behaviour for 'git commit-graph write' should simply walk history from all refs instead of enumerating all objects in all packfiles. [1] - Please excuse the bikeshed: '--additive' is such a strange sounding option name, at least for me. '--append', perhaps?