Skip to content

Commit

Permalink
Streamline List.is-lazy, about 30% faster
Browse files Browse the repository at this point in the history
Step one of more streamlining with regards to reify-until-lazy /
fully-refied.
  • Loading branch information
lizmat committed Jun 3, 2016
1 parent 0cc70dc commit 56cc3ae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/core/List.pm
Expand Up @@ -742,13 +742,8 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
}

method is-lazy() {
if $!todo.DEFINITE {
$!todo.reify-until-lazy();
!$!todo.fully-reified
}
else {
False
}
$!todo.DEFINITE
&& STATEMENT_LIST($!todo.reify-until-lazy; !$!todo.fully-reified)
}

proto method pick(|) is nodal { * }
Expand Down

0 comments on commit 56cc3ae

Please sign in to comment.