]> source.dussan.org Git - jgit.git/commit
ReceivePack: Micro-optimize object lookup when checking connectivity 74/574/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 16 Apr 2010 23:37:29 +0000 (16:37 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 17 Apr 2010 00:04:38 +0000 (17:04 -0700)
commita770205070b52199e5c561f407ee0b0168dd8b9f
tree63a13014a044b1023af48401d181f5e2b802c3d2
parent6029bb24adafd4434f362c58e2f00c0057502f45
ReceivePack: Micro-optimize object lookup when checking connectivity

If we are checking the visibility of everything referenced in the
pack that isn't already reachable by a reference, it needs to be
in the provided set.  Since the provided set lists everything that
is in this pack, we can avoid checking to see if the blob exists
on disk, because we know it should be there, it was found in the
pack we just consumed.

Change-Id: Ie3c7746f734d13077242100a68e048f1ac18c34a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java