2 ms·
Being concerned about that is premature optimization (which is the root of all evil). It does not matter in any significant way vast majority of the time. If yo
by astral303 13y ago
Being concerned about that is premature optimization (which is the root of all evil). It does not matter in any significant way vast majority of the time. If you have a really hot loop, OK, you can try removing value copies to see if that has an effect. But unless you've identified the hot code, do not prematurely optimize by avoiding parameters.
Also all the expensive values are objects, and only references to them are copied, not the objects themselves.