Quote Originally Posted by storm5510 View Post
I can put the same code inline, or in an internal function, and the application performance drops dramatically...
I don't buy that - it totally depends on how things are done.
Say you need to multiply two numbers so you can do a*b in-line and be done with it. Guess what? You can get the same result by calling dozens of different subs/functions as well. Would that be reasonable?
Look at your code and try tunning it up.

Regards.