No such thing as a small change | |
PerlMonks |
Re^3: How to make references more like aliases?by Prior Nacre V (Hermit) |
on Sep 29, 2004 at 05:57 UTC ( [id://394868]=note: print w/replies, xml ) | Need Help?? |
Benchmarking disagrees with you. The closure is generated only once - my code does more here:
The closure is called multiple times - your code does more here:
I benchmarked on a P3/Win98 system using both Cygwin/Perl5.6 and Msys/Perl5.8. I got comparable results for both versions (no discernible speed differences). These results were repeated when volume testing with array sizes between 100,000 and 500,000. At the end of the day, either will do nicely :-) Regards, PN5
In Section
Seekers of Perl Wisdom
|
|