Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #145 from lizmat/fastermoduleload
A temporary fix for faster module loading
  • Loading branch information
lizmat committed Jun 2, 2013
2 parents cd5ca7c + af2b6ce commit 0020ef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/ModuleLoader.nqp
Expand Up @@ -96,18 +96,21 @@ class Perl6::ModuleLoader {
%cand<load> := "$prefix/$pbc_path";
}
@candidates.push(%cand);
+last; # temporary, until we actually don't do just @candidates[0]
}
elsif $have_pir {
my %cand;
%cand<key> := "$prefix/$pir_path";
%cand<load> := "$prefix/$pir_path";
@candidates.push(%cand);
+last; # temporary, until we actually don't do just @candidates[0]
}
elsif $have_pbc {
my %cand;
%cand<key> := "$prefix/$pbc_path";
%cand<load> := "$prefix/$pbc_path";
@candidates.push(%cand);
+last; # temporary, until we actually don't do just @candidates[0]
}
}
}
Expand Down

0 comments on commit 0020ef7

Please sign in to comment.