]> source.dussan.org Git - jgit.git/commit
CommitGraphWriter: use ANY_DIFF instead of idEquals inside next() 65/1195565/3
authorIvan Frade <ifrade@google.com>
Fri, 31 May 2024 19:20:07 +0000 (12:20 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 31 May 2024 20:41:09 +0000 (13:41 -0700)
commit5e8fcfa853d99e036df9c9dc638370e40804fd38
treed9871d7a031c2f9b13a296b5103ddabfa2f047cb
parent37a36201a1999690500e5af7f16fa881a484a0ca
CommitGraphWriter: use ANY_DIFF instead of idEquals inside next()

Calculating the paths modified in a commit respect its parents is
taking undue amount of time in big trees.

Use ANY_DIFF filter, instead of #idEquals() inside the #next(). This
shorcuts the tree browsing earlier.

Change-Id: I318eee3ae817b7b9004d60bdb8d0f1bf19b9962d
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/CommitGraphWriter.java