Skip to content
Permalink
Browse files

We don't need to .push an IterationBuffer

A nqp::push() will do fine.  Makes @A <<+>> @b about 20% faster still.
And @A <<+<< @b and @A >>+>> @b about 10% faster (on account they only
use one DWIM iterator).
  • Loading branch information...
lizmat committed Nov 9, 2018
1 parent 194daab commit a575effeaab8ac39bbeb8c206f058c2df81d2bb7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Rakudo/Iterator.pm6
@@ -1489,7 +1489,7 @@ class Rakudo::Iterator {
self.pull-one,
),
nqp::stmts( # save / return value
$!buffer.push(value),
nqp::push($!buffer,value),
value
)
)

0 comments on commit a575eff

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