Commit e86a3b73 authored by Steve McIntyre's avatar Steve McIntyre

Improve performance more with a cached repo

Once we've cached the whole repo, stop trying to add more files. It
takes a long time if we keep trying to lookup things that are not in
the cache.
parent 17c73a09
......@@ -143,6 +143,12 @@ sub cache_file {
my $file = shift;
_debug "cache_file($file)";
if ($self->{REPO_CACHED}) {
_debug "cache_file() returning early - whole repo already cached";
return;
}
if ($self->{CACHE}{"$file"}) {
_debug "$file is already cached...";
_debug "cache_file($file) returning early";
......
......@@ -43,6 +43,7 @@ $VCS->cache_file($file);
$VCS->cache_file($file);
$VCS->cache_repo();
$VCS->cache_repo();
$VCS->cache_file($file);
print " ... done!\n";
########
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment