Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Optimizing the bejeezus out of a subby sgifford (Prior) |
on Jun 24, 2003 at 07:38 UTC ( [id://268414]=note: print w/replies, xml ) | Need Help?? |
My goal was to speed things up by avoiding copying each value from @_ to $section. While foreach is certainly more aesthetic, some benchmarking shows it to be about the same speed as my loop.
I'm a little surprised by this, actually; I expected using @_ directly to always be faster, since it would avoid copying values.
In Section
Seekers of Perl Wisdom
|
|