XP is just a number | |
PerlMonks |
Re: Re: Re: Re: array pre-allocation trickby Anonymous Monk |
on Nov 02, 2002 at 00:24 UTC ( [id://209866]=note: print w/replies, xml ) | Need Help?? |
True the map doesn't do much, but it's a minimal benchmark for Aristotle's suggestion:
I've replaced "do_stuff_with($_)" with a no-op. It didn't perform as well as the others, so that leads me to think I shouldn't pursue using map in this case.
In Section
Seekers of Perl Wisdom
|
|