We don't bite newbies here... much | |
PerlMonks |
Re: Re: Re: Re: lc entire contents of array?by Willard B. Trophy (Hermit) |
on Mar 31, 2004 at 15:30 UTC ( [id://341312]=note: print w/replies, xml ) | Need Help?? |
That was Perl 5.8.0 on a P3-600. I got similar results on a Sparc box with 5.8.2. I rather think we might be benchmarking other things than just the map and the for. For instance, lcing an array with 10,000 elements doesn't seem to take appreciably longer than one with 1,000 elements. Anyway, wiser monks have already pointed out that legibility should come first. Optimisation is a hardware problem. --
In Section
Seekers of Perl Wisdom
|
|