[perl #132306] [PERF] subroutine parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Oh, I guess it applies to methods as well. On 2017-10-14 20:10:15, alex.jakime...@gmail.com wrote: > Code: > sub f1($a, $, $, $, $, $) { 1 }; > my $s; > $s += f1($_, $_, $_, $_, $_, $_) for ^1_000_000; > say now - BEGIN now > > Result: > 0.43209886 > > > Code: > sub f2($a, $b1, $b2, $b3, $b4,

[perl #132306] [PERF] subroutine parameters, even if unused, make stuff slower ( f1($a, $, $, $, $, $) vs f2($a, $b, $c, $d, $e, $f) )

2017-10-14 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #132306] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132306 > Code: sub f1($a, $, $, $, $, $) { 1 }; my $s; $s += f1($_, $_, $_,