Skip to content
Browse files

Bind a lexical to avoid it vivifying into a Scalar

This saves an allocation per match object creation; not much, but we
could do with all the help we can get on this area.
  • Loading branch information...
jnthn committed Dec 13, 2018
1 parent e747b19 commit adb85609c8ac7223d0ff5c2ccc4f4f1c379cfee1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Match.pm6
@@ -25,7 +25,7 @@ my class Match is Capture is Cool does NQPMatchRole {

method !MATCH() {
my Mu $list;
my Mu $list := Nil;
my Mu $hash := nqp::hash();
if nqp::isge_i(

0 comments on commit adb8560

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