Efficiency

Hi I am trying to make my code more efficient. Is it more efficient to write a function for factorial or to call it from math?

Thanks
Leave it up to STL, unless it doesn't exist.

In that case:
http://www.cplusplus.com/forum/general/33968/

You may want to focus on other code, this wouldn't generally give much performance at all, if any.
Last edited on
thank you
Topic archived. No new replies allowed.