in reply to Inefficient code?
The snippet of code below is taking some time in doing what it does (computes min, max and means of several arrays). Is there a way to speed up the process?List::Util is a module written in XS, which does the same as your subroutines do (min, max). Because it's written in XS, it's definitely faster than what you have now.
my $mean = sum(@list) / @list;
|
|---|