![]() |
|
XP is just a number | |
PerlMonks |
Re^6: Efficiency of map vs. more verbose basic/fundamental codeby ruzam (Curate) |
on Oct 05, 2012 at 14:28 UTC ( #997485=note: print w/replies, xml ) | Need Help?? |
Thanks for that catch remiah. ++ I switched the benchmark methods from 'timethese' to 'cmpthese' at the same time that I fixed the test function calls, and then simply had a brain fart when I looked at the results. I've edited my post accordingly. Using foreach is faster than map in this example. My faith is restored (whew!).
In Section
Seekers of Perl Wisdom
|
|