Skip to content

Commit

Permalink
similar speedup for P6's MATCH maker
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Apr 7, 2015
1 parent aff1762 commit 13afa62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Cursor.pm
Expand Up @@ -56,10 +56,10 @@ my class Cursor does NQPCursorRole {
my int $csi = 0;
while $csi < $cselems {
my Mu $subcur := nqp::atpos($cs, $csi);
my Mu $submatch := $subcur.MATCH;
my Mu $name := nqp::getattr($subcur, $?CLASS, '$!name');
if !nqp::isnull($name) && nqp::defined($name) {
if $name ne '' && nqp::eqat($name, '$', 0) && ($name eq '$!from' || $name eq '$!to') {
if !nqp::isnull($name) && nqp::defined($name) && $name ne '' {
my Mu $submatch := $subcur.MATCH;
if nqp::eqat($name, '$', 0) && ($name eq '$!from' || $name eq '$!to') {
nqp::bindattr_i($match, Match, $name, $submatch.from);
}
elsif nqp::index($name, '=') < 0 {
Expand Down

0 comments on commit 13afa62

Please sign in to comment.