The second does something different than the other two, so it won't even be considered here.
The third is a proper superset of the first, so it will obviously take some extra time, but I've spent more time typing this then you will ever spend assigning undef to variables.
You're going about optimising completely backwards. Spend time picking the right algorithm over worrying about micro optimisations. Don't spend time fixing problems that don't exist.
In reply to Re: Basic optimization questions
by ikegami
in thread Basic optimization questions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |