Web lists-archives.com

RE: Bad performance when using git log --parents (used by gitk)

Hi Björn,

On Tue, 2 Apr 2019, Björn Pettersson A wrote:

> Thanks for a quick reply (with lots of details).
> Hitting some quadratic complexity algorithm explains why the "degradation"
> is so huge. And if I understand it correctly we are more or less "unlucky"
> to hit such access patterns more often in the new repo.
> Anyway, nice to see that you already have some ideas regarding how to
> improve this.

In the meantime, maybe the commit graph feature can help you?

	git config --global core.commitGraph true
	git config --global gc.writeCommitGraph true
	git commit-graph write --reachable

The idea being that the commit graph extracts a lot of information
pre-emptively and makes the lookup of those bits faster than unpacking the
commits all the time.