Search:
Forum
Beginners
Efficiency
Efficiency
Jul 26, 2011 at 7:59pm UTC
pbajaj5
(4)
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
Jul 26, 2011 at 9:36pm UTC
Turbine
(134)
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
Jul 26, 2011 at 9:42pm UTC
Jul 26, 2011 at 10:40pm UTC
pbajaj5
(4)
thank you
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs