Fast implementation of trigonometric functions for c++

后端 未结 9 1854
孤城傲影
孤城傲影 2020-12-07 19:24

Short version: I\'d like to know whether there are implementations of the standard trigonometric functions that are faster than the ones included in math.h.

9条回答
  •  忘掉有多难
    2020-12-07 19:28

    A) Trying to save small percents will not be very satisfying. Finishing in 97 instead of 100 hours is still a long time.

    B) You say you profiled, and that the trig functions take more time than you would like. How much? and what about all the remaining time? It's quite possible you have bigger fish to fry. Most profilers based on the gprof concepts do not tell you about mid-stack calls that you could focus on to save larger amounts of time. Here's an example.

提交回复
热议问题