Skip to content

Commit d2108c7

Browse files
committed
Intify commandline arguments once instead of every time
this reduces run time of pi-sequential-iteration to about 45%
1 parent 10a8649 commit d2108c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl6/pi-sequential-iteration

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use v6;
44

5-
my \SCALE = @*ARGS[0];
5+
my \SCALE = @*ARGS[0].Int;
66

77
my $delta = 1.0 / SCALE;
88
my $sum = 0.0;

0 commit comments

Comments
 (0)