The upshot of this is that map and foreach loop just as fast as each other. It's what you ask them to do (and how you use them) that dictates that in some cases one will be faster than the other.
Dave
In reply to Re^2: performance of map vs. foreach
by davido
in thread performance of map vs. foreach
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |