in reply to Re: Re: Idiomatic optimizations
in thread Idiomatic optimizations
Always pass referances not data structures hence \ operator is an optimistaion sub(\@array) instead of sub(@array)
Only use what you need from modules use CGI qw(:standard);
Also I like shortcut operators
Only use what you need from modules use CGI qw(:standard);
Also I like shortcut operators
also I like ? operator instead of if'smy $i ||=0 ; my $i =shift || 0;
is !~ an optimisation over just negating the result of =~, I dunno but I think !~ looks better$i?$i=1:$i=0;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Idiomatic optimizations
by Joost (Canon) on May 01, 2002 at 08:29 UTC | |
Re^4: Idiomatic optimizations
by tadman (Prior) on May 01, 2002 at 08:37 UTC | |
by demerphq (Chancellor) on May 02, 2002 at 13:13 UTC | |
Re: Re: Re: Re: Idiomatic optimizations
by Juerd (Abbot) on May 01, 2002 at 16:44 UTC |
In Section
Meditations