I want to make a small optimization to a code that runs trillions of times. Which way of calculating the inverse of a float64 is faster?
So far, the ways I know of calculating the inverse are the following.
k = 3.788
result1 = k**-1
result2 = 1/k
I'd expect this question to be answered but searching whats faster 1 divide or power of -1 on google (and similarly worded) returned 0
results. No exaggeration.