Skip to content
Permalink
Browse files

Don't use the expensive .relative method in CURI as it's not necessary

  • Loading branch information...
niner committed May 19, 2018
1 parent 22021fd commit 603010beeaeda758e93770658d9601eee858303f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/CompUnit/Repository/Installation.pm6
@@ -570,8 +570,8 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
my $handle = $precomp.try-load(
CompUnit::PrecompilationDependency::File.new(
:id(CompUnit::PrecompilationId.new-without-check($id)),
:src($repo-prefix ?? $repo-prefix ~ $loader.relative($.prefix) !! $loader.absolute),
:checksum(.meta<checksum> // Str),
:src($repo-prefix ?? $repo-prefix ~ 'sources'.IO.add($source-file-name) !! $loader.absolute),
:checksum($meta<checksum> // Str),
:$spec,
),
:source($loader),

0 comments on commit 603010b

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