Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: Re: Generating an array of n identical elementsby bronto (Priest) |
on Sep 16, 2002 at 10:49 UTC ( [id://198208]=note: print w/replies, xml ) | Need Help?? |
Right. And using fixed values instead of generic subroutines appears to be much more (and more and more) fast:
gives, on my lightly-loaded Pentium IV 1.5Ghz,
So map loses again. Uhm... it's the second time that other functions are far faster than map... I'd be interested in seeing a real case where map is the faster choice... does anyone have any? Ciao!
In Section
Cool Uses for Perl
|
|