While playing around with another function, I've made a discovery that seems pretty consistent.
Naming the variables within the subroutine (eg,
my ($a, $b) = @_;) is processing 20 times faster than not naming them!
Case in point, these subroutines are identical except for the naming:
[
tpcg.io...]
Over 10,000 iterations, named variables processes in 0.018s, while not named variables processes in 0.39s!
I get the same results on jdoodle.com, too.
Thoughts?