Hi all,
How (if at all) does the number of arguments to a function affect performance? Like is it ok have an argument list that's like 15 things long? (I don't think I have any that are quite 15, but just for the sake of argument.)
Does the size of the arguments affect the answer to my question? (i.e. is it different to pass 10 doubles vs 10 ints vs 10 pointers vs 10 strings, etc or some mix of the previous)
If there is some kind of practical upper limit on the # of arguments, would it be preferable to load arguments into a struct and pass that?
Thanks,
-Eric
How (if at all) does the number of arguments to a function affect performance? Like is it ok have an argument list that's like 15 things long? (I don't think I have any that are quite 15, but just for the sake of argument.)
Does the size of the arguments affect the answer to my question? (i.e. is it different to pass 10 doubles vs 10 ints vs 10 pointers vs 10 strings, etc or some mix of the previous)
If there is some kind of practical upper limit on the # of arguments, would it be preferable to load arguments into a struct and pass that?
Thanks,
-Eric