You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ perl6 -e 'my int $i = 42; for ^1000000 { $i = $i + 10 }; say now - INIT now'
0.36127593
$ perl6 -e 'my int $i = 42; for ^1000000 { $i += 10 }; say now - INIT now'
0.5772323
$ perl6 -v
This is Rakudo version 2017.11-8-g7939014 built on MoarVM version 2017.11
Looking at --target=optimize's ASTs, I see that while $i += 10 does get rewritten to $i = $i + 10, it misses optimization that converts &infix:<+> call into an nqp::add_i
The text was updated successfully, but these errors were encountered:
Ran through the Perl 6 implementation of day 05 part 2 with the
help of #perl6, improving the performance from 1m20s to 0m13s.
Resulted in two new Rakudo issues for future improvements:
rakudo/rakudo#1328rakudo/rakudo#1329
Looking at --target=optimize's ASTs, I see that while
$i += 10does get rewritten to$i = $i + 10, it misses optimization that converts&infix:<+>call into annqp::add_iThe text was updated successfully, but these errors were encountered: