On Mon, May 21, 2012 at 12:40:15PM -0700, sono...@fannullone.us wrote:
> On May 20, 2012, at 10:07 PM, David Christensen wrote:
> 
> > I've updated function_arguments.pl with Benchmark, below. f_direct() is the 
> > fastest, f_shift() is in the middle (12% slower), and f_assign() is the 
> > slowest (37%).
> 
> David,
> 
>       Are you saying that it would be faster to do:
> 
> my $this_date = shift;
> my $output = shift;
> 
>       as opposed to:
> 
> my ($this_date, $output) = @_;
> 
>       or am I not reading your assessment correctly?

Please don't care about this until your code is running correctly but
too slowly and profiling has determined that this is the bottleneck.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to