]> source.dussan.org Git - jgit.git/commit
DfsInserter: Optionally disable existing object check 23/74323/2
authorDave Borowitz <dborowitz@google.com>
Wed, 1 Jun 2016 21:07:19 +0000 (17:07 -0400)
committerDave Borowitz <dborowitz@google.com>
Wed, 1 Jun 2016 21:21:33 +0000 (17:21 -0400)
commit0d6ba84065b3281d2e3c3cf8251b7679cbc83488
tree5492f830d9a7362ada48755d115cdc28d64201fa
parent525baa1213097aa8635d846ce024635b1f33931a
DfsInserter: Optionally disable existing object check

When using a DfsInserter for high-throughput insertion of many
objects (analogous to git-fast-import), we don't necessarily want to
do a random object lookup for each. It'll be faster from the
inserter's perspective to insert the duplicate objects and let a later
GC handle the deduplication.

Change-Id: Ic97f5f01657b4525f157e6df66023f1f07fc1851
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsInserterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsInserter.java