>>>>> "AS" == Adam Spiers <[EMAIL PROTECTED]> writes:

 AS> Weaver, Quinn BGI SF ([EMAIL PROTECTED]) wrote:
 >> > From: Adam Spiers [mailto:[EMAIL PROTECTED]]
 >> 
 >> > 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

_______________________________________________
Perlunit-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/perlunit-devel

Reply via email to