Example: barber
Tips for Optimizing C/C++ Code - Clemson University

Tips for Optimizing C/C++ Code - Clemson University

Back to document page

• Where funccost is the percentage of the program runtime used by the function func, and funcspeedup is the factor by which you speedup the function. • Thus, if you optimize the function TriangleIntersect(), which is 40% of the runtime, so that it runs twice as fast, your program will run 25% faster (1 (1−0.4)+0.4/2 = 0.8 = 1.25).

  Functions

Download Tips for Optimizing C/C++ Code - Clemson University


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Related search queries