The statement modifier form,
should be a bit faster, since no lexical scope is created. Faster yet could be,return 1 if $n < 1;
if that's what you want to happen when the test fails.return $n < 1;
In most non-trivial code it's not going to make any noticeable difference.
After Compline,
Zaxo
In reply to Re: Which code executes faster
by Zaxo
in thread Which code executes faster
by alandev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |