Skip to content
Snippets Groups Projects
Commit a7702050 authored by Shawn Pearce's avatar Shawn Pearce
Browse files

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: default avatarShawn O. Pearce <spearce@spearce.org>
parent 6029bb24
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment