Skip to content

Commit

Permalink
Avoid overhead of Array.STORE in CURI
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed May 19, 2018
1 parent 603010b commit 27e141c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/CompUnit/Repository/Installation.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -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($_)
Expand All @@ -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
Expand Down

0 comments on commit 27e141c

Please sign in to comment.