Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more performant fix for .[100000]
I believe this will scale better than the previous fix.
Feel free to revert if this turns out not to be the case.
  • Loading branch information
TimToady committed Sep 10, 2014
1 parent d315ab7 commit 02db739
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ListIter.pm
Expand Up @@ -19,6 +19,7 @@ my class ListIter { # declared in BOOTSTRAP
}
else {
$count = nqp::unbox_i(nqp::istype($n, Int) ?? $n !! $n.Int);
$max = $count if $count > $max;
nqp::setelems($rpa, $count);
nqp::setelems($rpa, 0);
}
Expand Down

0 comments on commit 02db739

Please sign in to comment.