]> source.dussan.org Git - jgit.git/commit
Defer object collision check until pack stream is done 40/98740/4
authorZhen Chen <czhen@google.com>
Thu, 8 Jun 2017 23:55:26 +0000 (16:55 -0700)
committerZhen Chen <czhen@google.com>
Fri, 9 Jun 2017 04:57:03 +0000 (21:57 -0700)
commit9a3e037726ab7a65bb4ec439c32fee962e105882
treed2789c6350da5323acba189c3444e4bf8b7f2c03
parent0d20573d9cdcbd41707323a7c964376218575750
Defer object collision check until pack stream is done

Object collision check requires read from local storage which may be
slow. We already delay this check for blobs, this change will also delay
other objects until the pack stream is closed. In this way, there is no
readCurs call until the pack stream is closed.

Change-Id: I3c8c4720dd19a5f64f8c7ddf07d815ed6877b6aa
Signed-off-by: Zhen Chen <czhen@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java