Re: [Perlunit-devel] commits
Status: Beta
Brought to you by:
mca1001
From: Ian R. <ia...@ez...> - 2001-11-07 21:48:59
|
>>>>> "AS" == Adam Spiers <ad...@sp...> writes: AS> Weaver, Quinn BGI SF (Qui...@ba...) wrote: >> > From: Adam Spiers [mailto:ad...@sp...] >> >> > Time for a quick poll; can we reach a consensus on whitespace policy? >> >> I'm with you. AS> Cool :-) AS> While we're at it, another quick poll: AS> my $self = shift; AS> my $arg = shift; AS> or AS> my ($self, $arg) = @_; AS> ? AS> IIRC some of my cow-orkers here benchmarked it and found that the AS> latter was noticeably faster. FWIW, on my box, the shift method seems to be a touch faster if there are one or two arguments (including $self); the @_ method starts to win at three. However, the difference is in the fraction of a microsecond range, so it's probably not a deciding factor :). - Ian |