For example, if you array is a million elements and you a million arrays, then that is alot to pass around. The size of that versus the size of one scalar (the reference) is obviously very different. Because of this, I have gotten in the habit of returning references to data structures, especially complex ones such as arrays or arrays.
In reply to Re: Re: Re: Returning two arrays..
by jonjacobmoon
in thread Returning two arrays..
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |