Skip to content

Commit

Permalink
Micro-optiize IterationBuffer.append(IterationBuffer:D)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 16, 2021
1 parent 95164a7 commit 92c490e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core.c/IterationBuffer.pm6
Expand Up @@ -18,9 +18,8 @@ my class IterationBuffer {
method elems() { nqp::elems(self) }

method push(Mu \value) { nqp::push(self, value) }

method append(IterationBuffer:D \buffer) {
nqp::splice(self,buffer,nqp::elems(self),0)
method append(IterationBuffer:D $buffer) {
nqp::splice(self,$buffer,nqp::elems(self),0)
}

proto method AT-POS(|) {*}
Expand Down

0 comments on commit 92c490e

Please sign in to comment.