]> source.dussan.org Git - jgit.git/commit
tree:<depth> should not traverse overly-deep trees 50/139550/11
authorMatthew DeVore <matvore@gmail.com>
Mon, 25 Mar 2019 22:36:35 +0000 (15:36 -0700)
committerMatthew DeVore <matvore@gmail.com>
Tue, 16 Apr 2019 17:36:59 +0000 (10:36 -0700)
commit175e66548b78e6d22ad27d62eeb06a77ee4d139d
treef0d100a6ffc826437d53edcf0dd3456203f7dfa3
parent93dd2d482abb6202e265226775a4bdd2b64d4209
tree:<depth> should not traverse overly-deep trees

If we are traversing a tree which is too deep, then there is no need to
traverse the children. Skipping children is much faster than traversing
the possibly thousands of objects which are directly or indirectly
referenced by the tree.

Change-Id: I6d68cc1d35da48e3288b9cc80356a281ab36863d
Signed-off-by: Matthew DeVore <matvore@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ObjectWalk.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java