Skip to content
Permalink
Browse files

Cache files-prefix

  • Loading branch information...
ugexe committed Dec 27, 2018
1 parent 1611795 commit d39e2fc4f871e763f6500460f80c997ede013f22
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/CompUnit/Repository/FileSystem.pm6
@@ -6,6 +6,7 @@ class CompUnit::Repository::FileSystem does CompUnit::Repository::Locally does C
has $!precomp-stores;
has $!precomp-store;
has $!distribution;
has $!files-prefix;

my @extensions = <pm6 pm>;

@@ -137,7 +138,7 @@ class CompUnit::Repository::FileSystem does CompUnit::Repository::Locally does C
# packages/../resources?
# packages/resources?
method !files-prefix {
$!prefix.child('META6.json').e ?? $!prefix !! $!prefix.parent
$!files-prefix //= $!prefix.child('META6.json').e ?? $!prefix !! $!prefix.parent
}

proto method candidates(|) {*}

0 comments on commit d39e2fc

Please sign in to comment.
You can’t perform that action at this time.