Skip to content
Permalink
Browse files

Avoid overhead of Array.STORE in CURI

  • Loading branch information...
niner committed May 19, 2018
1 parent 603010b commit 27e141cccda0ea0754c374260e70744372a7cbab
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/CompUnit/Repository/Installation.pm6
@@ -411,7 +411,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {

# Each item contains a subset of meta data - notably items needed `use "Foo:ver<*>"`
# All items match the given module short name, but may differ in ver, auth, api, etc.
my @metas = (
my $metas := (
self!repository-version < 1
?? $lookup.lines.unique.map({
$_ => self!read-dist($_)
@@ -436,8 +436,8 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
?? $spec.api-matcher
!! Version.new($spec.api-matcher);

# @metas has already been filtered by name via $lookup, so do remaining filtering on fast lookup fields
my $matching-metas := @metas.grep: {
# $metas has already been filtered by name via $lookup, so do remaining filtering on fast lookup fields
my $matching-metas := $metas.grep: {
$_.value<auth> ~~ $spec.auth-matcher
and $_.value<ver> ~~ $version-matcher
and $_.value<api> ~~ $api-matcher

0 comments on commit 27e141c

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