lundi 23 février 2015

Will many parameters in a recursive function cause performance issues?


My code will traverse around in a binary tree in a recursive fashion. Doing this I have some parameters I need to control. Thus, my function looks like this:



FindPoints(int leftchild, int rightchild, int ly_index, int uy_index, int bit, int nodepos, int amount, int level);


It is called a lot of times. Will the performance of my program take a hit because of the amount of parameters?




Aucun commentaire:

Enregistrer un commentaire