I have a section of my program that contains a lot of math with fairly long equations. Its long and unsightly, and I want to replace it with a function. However, a piece of code is rarely used in my code, and also requires the initialization of many variables.
If speed bothers me, is it worth calling a function and initializing variables that are negligible here, or should I stick with direct coding in each case?
Thank,
-Faken
source
share