C/C++ Performance Tips 2/2
Inline functions reduce execution time (-Q)
Limit number of functions as these calls add overhead
Use call by reference for arrays - reduces memory
Gotos are more efficient than a case, etc
Global variables improve performance because data does not need ot be passed around